The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator Syncfusion Team 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));
MAMattMarch 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.