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.
Unfortunately, activation email could not send to your email. Please try again.

SaveCellInfo + ResetVolatileData

Thread ID:

Created:

Updated:

Platform:

Replies:

41130 Feb 22,2006 04:38 PM Feb 23,2006 06:22 AM Windows Forms 1
loading
Tags: GridControl
Hui Zhong
Asked On February 22, 2006 04:38 PM

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

Administrator [Syncfusion]
Replied On February 23, 2006 06:22 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;