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

GridControl selection problem

Thread ID:





62058 Jun 7,2007 04:28 AM UTC Dec 28,2007 10:37 PM UTC WinForms 4
Tags: GridControl
Asked On June 7, 2007 04:28 AM UTC

hi haneef,

how do i prevent multi select in GridControl?

I've set the ListBoxSelectionMode = SelectionMode.One;
it's work well at the Row but the column could not be selected anymore.


Rajagopal [Syncfusion]
Replied On June 7, 2007 06:10 PM UTC

Hi Lim,

When you have the ListBoxSelectionMode set to anything other than None, then this will prevent the default behavior from working. The reason is that it allows only row based selections and preventing the columns from getting selected. Hence, you cannot able to select columns.

As a workaround, you handle the CellClick event and explicitly select the column if you click a header. In this way you can select the column when the ListBoxSelectionMode is set. Below is the code snippet.

void gridControl1_CellClick(object sender, GridCellClickEventArgs e)
if(e.RowIndex == 0 && e.ColIndex > 0)


Replied On October 24, 2007 03:21 PM UTC


I set the ListBoxSelectionMode to MultiExtended and found that I could no longer highlight the column headers or reorder them. So, I set the ListBoxSelectionMode back to None and it still will not allow me to highlight or drag the column headers. I tried rebuilding the project, but it does not seem to work.

I opened up two other VS 2005 solutios that also use a Syncfusion databoundgrid and tried setting the ListBoxSelectionMode to MultiExtended and None and everything seems to work the way it is supposed to. I'm not sure why this one project of mine doesn't work the way it is supposed to. Thanks!

Replied On October 25, 2007 01:10 PM UTC


I tried deleting the grid and putting in a brand new one. Then, I cleaned and rebuilt the entire solution but it still won't let me highlight or drag the columns.

AllowDragSelectedCols is set to true.

I'm not sure what to do...

J.Nagarajan [Syncfusion]
Replied On December 28, 2007 10:37 PM UTC

Hi Coder ,

Please refer to the below sample that works fine with out any problem in highlighting column headers and dragging them with the ListBoxSelectionMode set.


Please let me know if you have any other questions.



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

or the page will be automatically redirected to 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