What is the difference between refreshrange and refresh for cells that are in both the range of the refresh?
For instance, if I do a RefreshRange(1,1,1,1) and do a Refresh() (and this cell is viewable) there seems to be a difference in which Refresh re-paints immediately, but refreshrange does not re-paint the active cell.
Please advise on the technical differences.
ADAdministrator Syncfusion Team November 21, 2003 06:22 PM
There is an overload of RefreshRange that allows you to force the currentcell to be refreshed.
Refresh actually does a ResetVolatileData call and a UpdateScrollbars call in addition to painting the visible grid. RefreshRange does not do these additional calls.
TFTerry FosterJanuary 28, 2004 02:09 PM
In relation to this, I want to be able to BeginUpdate, perform operations that require one or more ranges to be refreshed (not the entire grid, for speed reasons) and then EndUpdate. I''ve noticed that any RefreshRange calls made between BeginUpdate and EndUpdate are essentially ignored for my virtual grid, but Refresh is not. Is there a reason for this? Is there a way for me to get around this?
ADAdministrator Syncfusion Team January 28, 2004 03:52 PM
Use BeginUpdateOptions in the BeginUpdate call.
// do your updating calling RefreshRange....