In .net WinForm, DevExpress GridControl / GridView is bound to DataSet, how to specify default sort order? One that is used when there is no visible GridColumn with SortOrder.
By default, I set the sort in the view on my hidden DateTimeStamp GridColumn column. It, of course, is redefined by the user if the user clicks on a column. The user can "Clear Sort" by using the menu in the column or by clicking on the column by pressing the "Control" key. However, the strings are not sorted anymore (or maybe PK?), While I would like them to be sorted by DateTimeStamp.
Any idea? Maybe by connecting a notification code when the user is "Clear Sorting"? I can play with GridView.PopupMenuShowing and GridStringId.MenuColumnClearSorting to handle the case with a menu click. But it does not handle the Control + click case.
Does someone encounter the same problem and find a (simple) solution?
source
share