Jump to content

[UniDBGrid]Multi sort and disable sort


delagoutte
 Share

Recommended Posts

the operation of the current sorting does not suit me.

 

 

I wish I had the following behavior :

exemple 1 :

application start with a dbgrid

click on first column title -> sort = col1 asc

click on first column title -> sort = col1desc

click on first column title -> sort = none

click on first column title -> sort = col1 asc

...

 

exemple2 :

click on first column title ->sort = col1 asc

click on first column title ->sort = col1 desc

click on second column title ->sort = col1 desc , col2 asc

click on first column title -> sort = col2 asc

 

For do it, 

I need to change the image of the sort (the arrow) by code. i need to synchronize the  images of sort with the current state of tri.

 

How can i force display asc or desc arrow or none ?

 

 

 

Link to comment
Share on other sites

  • 1 year later...

Hello everyone !  ^_^

I know this seem to be a very simple question, but when I clean the filter of my FDQuery, columns graphical rendering still show that they are sorted.. how can I cancel graphical sorting rendering of the columns ?  :(

 

Thank you guys :3

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...