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

Select Multiple Cells including the Header

Thread ID:





94702 May 27,2010 07:56 PM UTC May 28,2010 03:26 PM UTC General Discussion 1
Tags: General Discussion
Riccardo Scannicchio
Asked On May 27, 2010 07:56 PM UTC

I have GridControl and I would like to allow the possibility to select multiple cells.
It does work for all the cells beside the Header,
I can select every cells but not the Header.
How I can enabled this feature?

Arulraj A [Syncfusion]
Replied On May 28, 2010 03:26 PM UTC

Hi Riccardo,

Thanks for your interest in Syncfusion Products.

By default, when the column header cell is selected, it will select that entire column. If you would like to select only the column header cell while clicking on it, you can handle the SelectionChanging event and get the first cell value by GetFirstCell() method and reset the values of that range. The below code explains the same.

int top, left ;
void gridControl1_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
if (e.ClickRange.IsCols)
e.Range.GetFirstCell(out top, out left);
e.Range = GridRangeInfo.Cell(top, left);

Please let me know if you have any further concerns.



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