mos Posted July 20, 2018 Share Posted July 20, 2018 I am using a UniStringGrid and have added some code to sort based on the header column cell that is clicked. What I would like to do is display the sorting arrows to indicate which column is currently sorted and whether it is sorted ascending or descending. Is it possible to show the arrows and to set which arrow is visible? Link to comment Share on other sites More sharing options...
Sherzod Posted July 20, 2018 Share Posted July 20, 2018 Hi, Yes UniStringGrid doesn't have a native sort capability in uniGUI. You can implement it by enabling client side sorting. But it is better, if you open a feature request in our support portal Link to comment Share on other sites More sharing options...
mos Posted July 22, 2018 Author Share Posted July 22, 2018 Hi Delphi Developer, Yes I did find another thread which allows the StringGrid to do client side sorting in this thread http://forums.unigui.com/index.php?/topic/6225-dbgrid-clientside-sorting/?hl=sorting using the headerclick code. However I needed more flexibility so have written my own sort routine e.g. I only wanted the sort to occur for rows > x onwards. What I need to do is show the sorting arrows as highlighted in my attachment. Is it possible to force those arrows to be visible so I can display the appropriate arrow when the user clicks on a header? Or can I somehow extract the arrow images and then somehow display the appropriate arrow image when the user clicks on a header? Some other questions regarding client sort sorting which I am using in another UniStringGrid: How can I capture the sort column and direction so I can save the sorting information so I can reapply it on startup? How can I apply the sorting information that was saved above to the grid on start up of my application? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now