Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top