I bind a huge data table into a Grid. We have several columns where we tend to hold data that needs to go in as bulk updates and there are few flagable columns that user clicks that require instateneous updates. When the instantenous updates takes place we tend to change the bit immediately in the cell rather than fetching and bind again. During this occasion the Row.DataChanged and Cell.DataChanged are set to true. I wanted to find out if thre is any way I can control that bit. I have also noticed, that the datatable some how does not have a full link between the grid after binding, in the sence when I update the grid, the datagrid's row changed bit does not happen.
You might want to take a look at hte UpdateMode property of the grid. I don't really think that there is a way to specifically set these flags, but the grid will, by default, not commit changes to the underlying data source until the ActiveRow has changed, or the grid has lost focus. You could force this to occur through the Update method on the row, or by changing the UpdateMode property.
-Matt
This is great. I can use the UpdateMode and manually construct my updates. But I do have some extra questions before I go changing things.
1) I am not using any datasouce objects, Will the Grid.Update or Row.Update throw any exceptions when called (I might call just to change the state of the row)?
2) What will be the beast and easiest way to get only the list of modified rows. Is there any properties that can give me the List of rows.
3) When a value is changed in a readonly column programmatically will the DataChanged trigger happen?
4) Is the UpdateMode similar in the UltraWebGrid?