Jump to content

UniDBGrid grouped asc/desc sorting runtime.


Recommended Posts

Hi all.

I have UniDBGrid in the app, utilizing FDQuery to retrieve the data. The grid is grouped by 1st column, so the Grouping is enabled.

There is the property for the grid, named SortDescending.

So in design mode, when i select TRUE, and run the app-it works fine, the grid is sorted by the grouped column in DESC order.

The same if SortDescending=FALSE in design mode, then the running app is sorted ASC correctly.

 

But when i'm trying to use this property in runtime, in the code-it doesnt affect any sorting, so it is always sorted as defined initially in design mode.

Any solution how  to switch grouped column sorting between ASC and DESC runtime?

 

Any help appreciated!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...