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.

ResetVolatileData vs Refresh

Thread ID:

Created:

Updated:

Platform:

Replies:

14628 Jun 1,2004 09:25 AM Jun 2,2004 09:08 AM Windows Forms 3
loading
Tags: GridControl
Steve
Asked On June 1, 2004 09:25 AM

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 11:47 AM

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

Steve
Replied On June 2, 2004 06:27 AM

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

Administrator [Syncfusion]
Replied On June 2, 2004 09:08 AM

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.

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.

;