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,
ADAdministrator Syncfusion Team 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.