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.
Unfortunately, activation email could not send to your email. Please try again.

Using the GridControl / GridListControl as a sorted list view?

Thread ID:

Created:

Updated:

Platform:

Replies:

1875 Dec 2,2002 03:10 PM Dec 2,2002 04:55 PM Windows Forms 1
loading
Tags: GridControl
Nik Vale
Asked On December 2, 2002 03:10 PM

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 04:55 PM

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.

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.

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.

;