Report Control - Sorting |
Post Reply |
Author | |
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Posted: 31 August 2004 at 5:22am |
I have been trying to find a way to sort items in the grid other than Alphabetically. Specifically Date Order and Numeric Order. The closest thing I could find is the PropertySort Property but this only offers group, alphabetical and none as options. I checked out the Report Control sample since that has a "Date Received" column hoping that I could just copy what was happening there. However it seems that the sample doesnt sort items correctly either. (date order that is) Is there a way to do this that Im not seeing? If not can you please add it for the next release. If there is then you might want to fix the sample application. Thanks |
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
Hi Maui I've been tryin g to solve the same problem. I posted a possible solution in the General Discussion forum: https://forum.codejock.com/forum_posts.asp?TID=1097& PN=1#2851 I use a similar solution for formatting and sorting numeric values. Hope this helps for now... Edited by ianp |
|
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
|
Thanks. I converted my date and then added it like this and it sorted fine. Item.Value = MyDateValue |
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
no worries, glad to help. Do you think that it is necessary for the multiple conversions?
|
|
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
|
I now add the cell with the value I am going to be sorting on (this goes into the .value property) and then use .caption to format the display. I think the reason I didnt do it this way before was because I just copied and pased code from the sample and that worked fine. |
|
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 |