Search the Community
Showing results for tags 'sorting'.
Based on following discussion: http://forums.unigui.com/index.php?/topic/5358-unidbgrid-get-set-sorting-state-of-column/ It would be importand if we could get/set the sorting status of a column by code. Something like TUniDBGrid.columns.Sort(asc); TUniDBGris.colimns.SortingState; (ssNone, ssAsc, ssDesc) Then we could save and reset the sort state of a grid. At moment, if you open a form with a grid, you can not set the column shown as sorted which is actually sorted in the dataset behind. So, if the user clicks on the column header, nothing occurs but the header is show
Hello guys! I have a UniDBGrid with some columns with the "Sortable" property enabled and the "OnColumnSort" event scheduled. Basically, I enter the field in the "IndexFieldName" property of TADQuery. However, I need to clear this order ... Return to the original sort order, which is in the SQL query. Even closing and opening the query and clearing the property "IndexFieldName", prevails the ordering of the column that was clicked. How to clear the ordering of the UniDBGrid columns? Sorry for English. I'm brazilian. Thank you!
Hi to all Unigui Community, after a research on the forum I don't find how to sort columns on unidbgrid. There is a demo that does it but no source code. Moreover I enabled the option sortable, menu is enabled, but does not sort anything. Thanks for your time.