Jump to content

TUniDBGrid - Set/Get sorting stastus of a column


Recommended Posts

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[0].Sort(asc);

TUniDBGris.colimns[0].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 shown as sorted, what it already was before..

  • Upvote 1
Link to comment
Share on other sites

  • 3 years later...
×
×
  • Create New...