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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid selection options.

Thread ID:





21842 Nov 24,2004 01:21 PM UTC Nov 24,2004 04:00 PM UTC WinForms 1
Tags: GridControl
Asked On November 24, 2004 01:21 PM UTC

I would like to have a grid displayed which allows following: 1. Row headers are displayed. 2. Columns can be selected and dragged. 3. Multi rows can be selected. 4. Rows can be selected by clicking on any cell in the row. So far I can only achive first three items at the same time applying following settings: DataGrid.AllowDragSelectedCols = true; DataGrid.ListBoxSelectionMode = SelectionMode.None; DataGrid.Properties.RowHeaders = true; With these setting in place I can only select the row by clicking on the row header. This is confusing to my customers. Can I define the grid which has a selectable and dragable columns and in the same time allows me to select the rows by clicking on any cell. If not is this being addressed.

Administrator [Syncfusion]
Replied On November 24, 2004 04:00 PM UTC

Take a look at this sample. \Grid\Samples\Quick Start\HighlightCurrentRow It shows an alternative to using ListBoxSelectionMode to allowing a row to be selected clicking on any cell. A differernt solution is to keep the ListBoxSelectionMode setting, but to explicitly select the column when the user clicks it. This would then allow the user to drag the selected column. Here is a link to a forum thread discussing this option.


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

Live Chat Icon For mobile
Live Chat Icon