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
close icon

CoveredRange Questions

A few questions about the CoveredRange.

1) How can you know if the Grid.CoveredRange.Add() succeeded or not (since it will not add an overlapping CoveredRange)?
2) I am using a grid with a splitter. I can draw on the CoveredRanges in the first splitter panes but my drawing doesn't show on any of the over splitter panes?
3) How can I get a reference to a newly added CoveredRange (like and index)?
4) What is the Grid.CoveredRange.Ranges.Add() good for?


1 Reply

RB Ragamathulla B Syncfusion Team September 10, 2011 05:42 AM UTC


Hi Marion,

Thank you for your interest in syncfusion products.

1) you can set the coveredRange in the spliter using CoveredRange method. The following code explains the same.

this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(3,1,5,4));


2)You can get the index of covered range from

QueryCoveredRange event.


void gridControl1_QueryCoveredRange(object sender,

GridQueryCoveredRangeEventArgs e)
{
//other code
}


Please refer the following sample which illustrate the same.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=SplitterCoveredRange-25825403.zip

Let me know if you have any further conerns.

Regards,
Ragamathullah B.


Loader.
Live Chat Icon For mobile
Up arrow icon