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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Current cell does not repaint in virtual mode (2.1.0.9)

Thread ID:

Created:

Updated:

Platform:

Replies:

26268 Mar 17,2005 10:33 PM UTC Mar 18,2005 02:28 PM UTC WinForms 3
loading
Tags: GridControl
Mike
Asked On March 17, 2005 10:33 PM UTC

Current cell does not repaint when using InvalidateRange. Grid is in virtual mode. Any suggestions? Thanks

Administrator [Syncfusion]
Replied On March 17, 2005 11:13 PM UTC

Try calling grid.RefreshRange using the overload that allows you to set forceRefreshCurrentCell to true.

Mike
Replied On March 18, 2005 02:01 PM UTC

Clay, Thanks. In my early research, the RefreshRange seemed more expensive in terms of CPU utilization than the InvalidateRange so I''ve used the latter. Maybe I can just check is the current cell intersects with my updated range and use the RefreshRange selectively.

Administrator [Syncfusion]
Replied On March 18, 2005 02:28 PM UTC

Here is the code in RefreshRange. It shows what has to be done to get the currentcell refreshed.
public void RefreshRange(GridRangeInfo range, GridRangeOptions options, bool forceRefreshCurrentCell)
{
	TraceUtil.TraceCurrentMethodInfoIf(Switches.BeginEndUpdate.TraceVerbose, PaneDesc, range);
	if (this.ShouldPrepareUpdate(true))
	{
		Model.ResetVolatileData();
		InternalInvalidate(RangeInfoToRectangle(range));
		if (forceRefreshCurrentCell && range.Contains(CurrentCell.RangeInfo))
			CurrentCell.Refresh();
		Update();
	}
}

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.

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

;