Y
yonggangwang
Hi:my friends
I meet a very very strange problem;
I use untyped dataset, after I changed
the value of one row in the datatable,I see
the rowstate is modified,but after I call the update method of
datadapter,nothing hanppend.Here is my code:
daMasterRemote.Update(dsRemote.order_master);
dsLocal.Tables["order_master"].Rows[comboPadNo.SelectedIndex]["order_no_remo
te"]=(int)dsRemote.order_master[0].order_no;
string
s=dsLocal.Tables["order_master"].Rows[comboPadNo.SelectedIndex].RowState.ToS
tring();
daMaster.Update(dsLocal.Tables["order_master"]);
string
s1=dsLocal.Tables["order_master"].Rows[comboPadNo.SelectedIndex].RowState.To
String();
s="Modified",s1="UnChanged"
dsLocal is Access(untyped),dsRemote is Sql(typed);
Before I used typed dataset for Access, it has same problem,so I try to use
uptyped dataset two days ago,
It worked very well,but It stoped again yesterday,I don't konw why. Dose
anyone have a idea?
(I have already tried office2000 and officexp,same problem)
Thanks a lot!
Yonggang_Wang
I meet a very very strange problem;
I use untyped dataset, after I changed
the value of one row in the datatable,I see
the rowstate is modified,but after I call the update method of
datadapter,nothing hanppend.Here is my code:
daMasterRemote.Update(dsRemote.order_master);
dsLocal.Tables["order_master"].Rows[comboPadNo.SelectedIndex]["order_no_remo
te"]=(int)dsRemote.order_master[0].order_no;
string
s=dsLocal.Tables["order_master"].Rows[comboPadNo.SelectedIndex].RowState.ToS
tring();
daMaster.Update(dsLocal.Tables["order_master"]);
string
s1=dsLocal.Tables["order_master"].Rows[comboPadNo.SelectedIndex].RowState.To
String();
s="Modified",s1="UnChanged"
dsLocal is Access(untyped),dsRemote is Sql(typed);
Before I used typed dataset for Access, it has same problem,so I try to use
uptyped dataset two days ago,
It worked very well,but It stoped again yesterday,I don't konw why. Dose
anyone have a idea?
(I have already tried office2000 and officexp,same problem)
Thanks a lot!
Yonggang_Wang