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

How can you refresh non-adjacent columns simultaneously?

Thread ID:





18816 Sep 9,2004 04:49 PM UTC Sep 9,2004 05:58 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On September 9, 2004 04:49 PM UTC

Looking for a way to refresh all the cells in two particular columns in one efficient shot, instead of making two calls to the grid. For instance, refresh 1st and 3rd column, they are non adjacent. Using the GridRangeInfo class does not seem to do it. It offers a .Union method but this would include column 2 in the range as well, which would be a waste. Is there no way of asking the grid to refresh two discontiguous columns short of making 2 seperate calls?

Administrator [Syncfusion]
Replied On September 9, 2004 04:58 PM UTC

I don''t know of a way to update two non-contiguous areas in a single call. You could try calling grid.Invalidate twice for the two areas and then call grid.Update to see if this works better for you than calling grid.Refreshrange twice.

Administrator [Syncfusion]
Replied On September 9, 2004 05:06 PM UTC

How can you tell .Invalidate() to deal with columns? It seems to deal with Regions only, how do I get a region for 2 specific columns?

Administrator [Syncfusion]
Replied On September 9, 2004 05:58 PM UTC

Control.Invalidate takes a Rectnagle. Use grid.RangeInfoToRectangle to covert a GridRangeInfo object to a Rectangle. (You still have to call grid.Invalidate twice for the two rectangles.)


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