Hi. My app has separate columns for date, time and other data. I need to sort the grid based first on the date, and then by the time column. I'm using the following code to sort by both columns but it doesn't work:
band.Columns[timeColumnKey].SortIndicator = SortIndicator.Descending;
band.Columns[dateColumnKey].SortIndicator = SortIndicator.Descending;
Does anyone know how I can sort by the contents of two columns?
I'm using version 10.2. Thanks.
Hello,
Just checking if the latest replies helped you out and if you require any further assistance on the matter.
Sincerely,DimiDeveloper Support Engineer, MCPD Infragistics, Inc.www.infragistics.com/support
Dimi,
Hi. Thanks for the great info on this. I still don't quite understand the sorted columns collection. Maybe you can fill in the blanks...
1. Once I create the sorted columns collection, do I have to execute a command to sort on the collection? Or, does the grid know to keep things sorted that way for some period of time?
2. If the user resorts the grid by clicking on a column header, can I force the columns to be sorted again (by the sorted columns collection) in the future? Or, do I have to re-create the sorted columns collection first?
Thanks.