We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SaveCellInfo + ResetVolatileData

I have one problem with SaveCellInfo()event for virtual grid. Please see the attached example code. Our intention is to change the one cell''s data in the SaveCellInfo() event, and change the another cell''s data in the datatable. And then call ResetVolatileData() to update the grid data. However, ResetVolatileData() not working. When you set a debug point at ResetVolatileData(), and test this function by going through this debug point. Then refresh is working in this scenario. Please instruct how to get ResetVolatileData() working in this case. Thanks.

Forum_40735.zip

1 Reply

AD Administrator Syncfusion Team February 23, 2006 11:22 AM UTC

Hi Hui, The ResetVolatileData method is used to reset properties like the row count and column count. In order to display the changes in the datasource, the methods like refresh, refreshrange and invalidate are to be used. For this scenerio, try setting the refreshcurrentcellbehaviour to refreshrow in the form load event to see if it helps or go for above mentioned methods in the savecellinfo event. Below is the code snippet to resolve the issue // In Form1_Load event this.gridControl2.RefreshCurrentCellBehavior = GridRefreshCurrentCellBehavior.RefreshRow; Best Regards, Madhan.

Loader.
Live Chat Icon For mobile
Up arrow icon