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

Using the GridControl / GridListControl as a sorted list view?

Thread ID:





1875 Dec 2,2002 08:10 PM UTC Dec 2,2002 09:55 PM UTC WinForms 1
Tags: GridControl
Nik Vale
Asked On December 2, 2002 08:10 PM UTC

Is it possible to configure the grid control to behave as a sorted list view? What I would like is a cross between the GridListControlSample and the SortedGridControl examples. I would like to be able to have multiple columns and be able to sort by clicking on the column headers. I would like the sorted column to display an arrow icon to indicate the sort direction. I would also like clicking on a single item to result in the whole row being selected? Thanks in advance, Nik

Administrator [Syncfusion]
Replied On December 2, 2002 09:55 PM UTC

You can combine the techniques in the GridControlSort sample and the HighLightCurrentRow sample to implement this. In the GridControlSort sample, make all the cells use the Static celltype instead of the default TextBox. You can do this by setting gridControl1.TableStyle.CellType = "Static"; Then add the 3 event handlers CurrentCellDeactivated, CurrentCellActivated and PrepareViewStyleInfo as described in the HighLightCurrentCell sample. Attached is a modified GridControlSort sample showing these changes.


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