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?
ADAdministrator Syncfusion Team September 9, 2004 11:58 AM
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.
ADAdministrator Syncfusion Team September 9, 2004 12:06 PM
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?
ADAdministrator Syncfusion Team September 9, 2004 12:58 PM
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.)