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

Data from selected range

Hello,

I am using the GridControl. I select a range of cells by dragging the mouse. How can I get/access the data present in those selected cells?

thanks
v

1 Reply

HA haneefm Syncfusion Team June 6, 2007 05:41 PM UTC

Hi Vivek,

You can handle the SelectionChanging event and set the e.Cancel to tue to prevent the cells from selection in a grid. Below is a code snippet to show this.

private void gridControl1_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
{
if( e.Range.IntersectsWith(GridRangeInfo.Cell(3,2)))
e.Cancel = true;
}

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon