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 and how can I know when its called

Thread ID:

Created:

Updated:

Platform:

Replies:

17335 Aug 5,2004 06:18 PM Aug 6,2004 10:54 AM Windows Forms 1
loading
Tags: GridControl
Sue Harris
Asked On August 5, 2004 06:18 PM

Hi, I want to hold an additional cache of data about my virtual grid in a override class of the GridControl, and whenever the volatile data is reset (via the ResetVolatileData method), I want to also reset my data cache. I noticed in the code that there was a NotifyResetVolatileData event, but it is internal not public or protected. Do you have any suggestions on how I can know when to reset my caches? Thanks, Sue

Administrator [Syncfusion]
Replied On August 6, 2004 10:54 AM

Hi Sue, if you look at the ResetVolatileData code you also see these lines: if (gridVolatileData != null) gridVolatileData.Clear(); This is where you can implement a hook. VolatileData is a object that you can replace. What you should do is derive a class from GridVolatileData and override its Clear method. You need to assign a instance of your derived volatile data object to the GridModel.VolatileData property. Stefan

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.

;