Hi:everybody
I meet a very strange problem.
I use strong typed DataSet.
After I change the row value,the rowstate always UnChanged.
Here is the code:
dsOrder.order_master[cmMaster.Position].order_no=10;
string s dsOrder.order_master[cmMaster.Position].RowState.ToString();
or
dsOrder.order_master[0].order_no=10;
string s dsOrder.order_master[0].RowState.ToString();
s is always "UnChanged".

But in the morning ,It was working very well.
I try to change the tables DefaultView' value,
the same thing happend,I got confused,
Dose anybody met problems like this?
Thanks !

Re: Need help!So strange with DataRow State.. by Jeff

Jeff
Mon Nov 22 17:24:32 CST 2004

Is Order_No the primary key??

"yonggangwang" <wyglx1224@msn.com> wrote in message
news:#Ipyx6GyEHA.3804@TK2MSFTNGP10.phx.gbl...
> Hi:everybody
> I meet a very strange problem.
> I use strong typed DataSet.
> After I change the row value,the rowstate always UnChanged.
> Here is the code:
> dsOrder.order_master[cmMaster.Position].order_no=10;
> string s dsOrder.order_master[cmMaster.Position].RowState.ToString();
> or
> dsOrder.order_master[0].order_no=10;
> string s dsOrder.order_master[0].RowState.ToString();
> s is always "UnChanged".
>
> But in the morning ,It was working very well.
> I try to change the tables DefaultView' value,
> the same thing happend,I got confused,
> Dose anybody met problems like this?
> Thanks !
>
>