Question

I have a devexpress grid control on my screen. One of the fields in the table is Room number, and is taking in a string (just in case you have room 2A or something like that). However, when I click the column header (to sort the values in either ascending or descending order), it doesn't work for all the values. There are blank spaces everywhere, strings are above a room number with 0, the whole thing is a mess. Is there a way for me to change the way the grid sorts?

Was it helpful?

Solution

You can implement custom sorting via the ColumnView.CustomColumnSort event. Custom sorting is enabled for the specific column if its GridColumn.SortMode property is set to ColumnSortMode.Custom.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top