Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
480
Controling HasDataChanged Bit
posted

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.

Parents
  • 37774
    Suggested Answer
    posted

    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

Reply Children