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

Data from selected range

Thread ID:





62009 Jun 6,2007 11:00 AM UTC Jun 6,2007 05:41 PM UTC WinForms 1
Tags: GridControl
Vivek Vashisht
Asked On June 6, 2007 11:00 AM UTC


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 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,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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