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

Data from selected range

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

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

CONFIRMATION

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.

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

;