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.
Unfortunately, activation email could not send to your email. Please try again.

Data from selected range

Thread ID:





62009 Jun 6,2007 07:00 AM Jun 6,2007 01:41 PM Windows Forms 1
Tags: GridControl
Vivek Vashisht
Asked On June 6, 2007 07:00 AM


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?


haneefm [Syncfusion]
Replied On June 6, 2007 01:41 PM

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,


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.

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.