how to set auto sort in a reportctrl |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 647 |
Post Options
Thanks(0)
Posted: 24 November 2020 at 2:54am |
My suggestion is that you add a hidden column with the absolute time when you add the record, and then sort on that column.
You can probably use the build in sorting algorithm if you use the CXTPReportRecordItemDateTime class for the items. Alternatively you can add your own Compare method.
|
|
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
yangyanhui
Senior Member Joined: 20 August 2020 Status: Offline Points: 131 |
Post Options
Thanks(0)
|
HI, I need to sort the records in a reportctrl automatically. records should be sorted by time desc. In other words, the new reached record should be insert into the first position. How can I realize it? thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |