![]() |
Sorting ListView items |
Post Reply ![]() |
Author | |
naikosen ![]() Groupie ![]() ![]() Joined: 01 April 2007 Location: United Kingdom Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 26 October 2008 at 7:45pm |
I want to get items sorted when a user clicks on the column header.
I could sort on columns having text fields.
But when I sort on the columns having numeric fields, it sorts in the following way:
1
11
10
2
3
4
5
6
7
8
9
Why are the numbers 11 and 10 not placed after 9? Please guide me to resolve this problem.
In the same way, how to sort on Date field?
|
|
![]() |
|
Mr.Den ![]() Groupie ![]() ![]() Joined: 26 August 2007 Status: Offline Points: 50 |
![]() ![]() ![]() ![]() ![]() |
For the date sorting, I had good luck making times 24 hour values rather than 12 hour with AM/PM, that threw sorts off even with standard Microsoft controls.
|
|
![]() |
|
Jean ![]() Senior Member ![]() ![]() Joined: 11 December 2006 Status: Offline Points: 110 |
![]() ![]() ![]() ![]() ![]() |
As a quick fix, you could format your numbers, e.g.
|
|
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
|
![]() |
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 |