Jump to content

Recommended Posts

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...