I''m developing application where I use GridList control for showing search results in multiple columns. I need to implement sorting behavior in it. How can I add sorting triangles into the header of GridListControl?
ADAdministrator Syncfusion Team March 16, 2004 05:54 AM
Currently there is no sorting support in a GridListControl. You would have to directly sort the underlying datasource. The GridListControl just virtually displays the datasource exactly as it is presented.
It might be easier to use a GridDataBoundGrid in ListBoxSelectionMode (a property setting). You can make the currentcell not be shown by handling the CurrentCellActivating event, and setting e.ColIndex = 0. You can also make all the cells static with code like grid.TableStyle.CellType = "Static". You can also hide the row headers (grid.Model.Cols.Hidden = true). Then you would have your sorting.
Here is a KB article that shows how to make a GDBG look similar to a GridListControl.
Also in future please post the Grid releated questions in the grid forum to ensure a fast reply.