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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Expand Covered Ranges

Thread ID:

Created:

Updated:

Platform:

Replies:

25660 Mar 2,2005 10:37 PM UTC Mar 2,2005 11:47 PM UTC WinForms 2
loading
Tags: GridControl
Matt
Asked On March 2, 2005 10:37 PM UTC

Hello, Is there an easy way to expand a Covered Range that is already on a grid? Currently the only way I have seen how to do this is to remove the ranage and then readd the expanded range: GridRangeInfo myRange = new GridRangeInfo(); gridSchedule.CoveredRanges.Find(start,i,out myRange); gridSchedule.CoveredRanges.Remove(myRange); GridRangeInfo myNewRange = new GridRangeInfo(); myNewRange = GridRangeInfo.Cells(start,i,iIncrease,i); gridSchedule.CoveredRanges.Add(myNewRange); As far as code readablity it isn''t the nicest and I am not sure how it will affect performace when changing a large amount of ranges.

Administrator [Syncfusion]
Replied On March 2, 2005 11:28 PM UTC

I think youare doing what you need to do. You could streamline the code a little by using the Static constructors to get the new range. So instead of GridRangeInfo myNewRange = new GridRangeInfo(); myNewRange = GridRangeInfo.Cells(start,i,iIncrease,i); gridSchedule.CoveredRanges.Add(myNewRange); you can try gridSchedule.CoveredRanges.Add(GridRangeInfo.Cells(start,i,iIncrease,i));

Matt
Replied On March 2, 2005 11:47 PM UTC

Thanks Clay. I just wanted to make sure there wasn''t a better way of doing it by just expanding the range that was already covered.

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

;