Hi,
I have two checkbox columns in a GGC grid. The columns are named "Delete" and "HighestVersion" separately. Initially "Delete" is false and "HighestVersion" is true.
When user checks the "Delete" checkbox, and then save the record in the database. The server side does something based on the record, and then set both "Delete" and "HighestVersion" flags to false.
After server side is done, I expect these two checkboxes to display "false" in the grid. However, they both are still "true". What can I do to fix this?
--------- code in save method in GUI --------
this.TableControl.CurrentCell.EndEdit();
this.CurrencyManager.EndCurrentEdit();
// call server method to save data
SaveData(this.geomDao, this.DataSet);
this.Refresh();
-------- code in server method to save data -----
if (drow.RowState == DataRowState.Modified
{
......
//reset any change made to record includs
//setting "Delete" flag to false
drow.RejectChanges;
// set highest version to false
drow[highestVerCol] = 0;
drow.AcceptChanges();
......
}
Thanks,
NJan