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

ResetVolatileData vs Refresh

Thread ID:





14628 Jun 1,2004 01:25 PM UTC Jun 2,2004 01:08 PM UTC WinForms 3
Tags: GridControl
Asked On June 1, 2004 01:25 PM UTC

What is the difference between Grid.ResetVolatileData and Grid.Refresh? If I have a grid that is 5 * 5 and I simply change the underlying data, (not the shape) then a refresh updates the grid and I see no reason to call ResetVolatileData. It appears that ResetVolatileData should be call if the number of rows/column changes or the first time the underlying data is ready for display. Please Clarify. Thanks!!

Administrator [Syncfusion]
Replied On June 1, 2004 03:47 PM UTC

A call to Refresh will also initiate a call to ResetVolatileData, so there is no need to do both. ( Refresh = ResetVolatileData + UpdateScrollBars + Update)

Replied On June 2, 2004 10:27 AM UTC

How does BeginUpdate() and EndUpdate() fit into this? Does EndUpdate() do the same as Refresh? Thanks, Steve

Administrator [Syncfusion]
Replied On June 2, 2004 01:08 PM UTC

BeginUpdate/EndUpdate is how you tell the grid to turn off/on its default drawing behavior. They suspend and restart the drawing. These are not necessarily related to Refresh, though it is common to call Refresh after a EndUpdate (depending on what parameters you used in calling BeginUpdate) to force teh grid to redraw it self. If you call grid.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.InvalidateAndScroll), and then a grid.EndUpdate(true), this comes close to having called grid.Refresh, but still does not do a grid.ResetVolatileData, and it will only affect teh regions of teh grid that got invalidated since the call to BeginUpdate. This may or may not be the whole clientarea of grid. Calling grid.Refresh does affect the whole clientarea of teh grid.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon