Posted 4 September 2018, 4:23 am EST
I have a C1TrueDBGrid with a column that has been set up with a ValueItems collection. This allows me to read ID values from the database and put them into this column, and it very nicely translates them into corresponding Description values to present to the user.
However when the user clicks the column header to sort the data in grid, the grid data ends up sorted by the ID values rather than the Descriptions. This is very confusing for the user as the data is in an apparently-random order.
Is there a way for me to get the grid to sort by the Description values rather than the underlying ID values?