Your response and your example say 2 different things. You say that you need to have resetrange and resetvolatiledata but in your savecellinfo event (as per my questions) you dont do either. In your example, you are only calling these events when the rows change. My quesion was when i update an existing cell in the grid (from the GUI) and the savecellinfo event fires.. do i need to explicitally call Refresh in the call stack of savecellinfo or does this happen automatically. I am not asking about when rows changes, just when 1 piece of data gets updated by the user. Please explain . .
thks,
ak
>Hi Adam,
>
> You need to call the RefreshRange() method along with the ResetVolatileData() and the UpdateScrollbar() methods explicitally in order to reflect the changes in the grid, when there is a change in the datasource. The ResetVolatileData() method is used to reflect the changes to grid immediately and the UpdateScrollbar() method is used to update the scrollbar properly. Here is the code snippet.
>
>// Update the datasource
> this.gridControl1.ResetVolatileData();
> this.gridControl1.UpdateScrollBars();
> this.gridControl1.RefreshRange(GridRangeInfo.Row(this.gridControl1.RowCount ));
>
>Refer this
sample for details.
>
>Let us know if you need any further assistance.
>
>Regards,
>Madhan