X
XIA Chengbin
Hello!
Would anyone kindly teach me how to programmatically post proposed values
for a row in windows form
datagrid?
The reason that I raise this question is -- whenever I call
OdbcDataAdpter.Update() method to apply updates and inserts the user
performed on a
datagrid, I would always lose the modifications on the row that is last
edited. I have to ask my users to manually click another row to post all
proposed values to the dataset.
By the way, this code fails to be effective:
this.BindingContex[mydataset.mytable].EndCurrentEdit(); //this = the
form
(My datagrid is bound to "mydataset.mytable", so I'm NOT using the wrong
CurrencyManager.)
TIA,
XIA Chengbin
Would anyone kindly teach me how to programmatically post proposed values
for a row in windows form
datagrid?
The reason that I raise this question is -- whenever I call
OdbcDataAdpter.Update() method to apply updates and inserts the user
performed on a
datagrid, I would always lose the modifications on the row that is last
edited. I have to ask my users to manually click another row to post all
proposed values to the dataset.
By the way, this code fails to be effective:
this.BindingContex[mydataset.mytable].EndCurrentEdit(); //this = the
form
(My datagrid is bound to "mydataset.mytable", so I'm NOT using the wrong
CurrencyManager.)
TIA,
XIA Chengbin