Ranorex

How to Check whether column is sorted or not in ListView

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
saurabh



Joined: 20 Jul 2007
Posts: 20
Location: India

PostPosted: Wed Aug 08, 2007 9:33 am    Post subject: How to Check whether column is sorted or not in ListView
In my application I am sorting the column using ClickColumn() Method.Now i want to check whether the clicked column is sorted or not so how can i do it?I am using RanorexNET.dll of RanorexPro version.Like if i have clicked Date-Time Column in my ListView so how can I check that the Date-Time Column is sorted.Please provide me exact code ASAP.
Thanks in Advance!
_________________
Regards,
Saurabh Shrivastava
GE Global Research
Bangalore India
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Wed Aug 08, 2007 10:12 pm    Post subject:
Quote:
...i want to check whether the clicked column is sorted or not so how can i do it?


I think you have only one possibility:
Read all items of the ListView and check every item with the previous one.
If you find no problem, then the list is sorted.

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
saurabh



Joined: 20 Jul 2007
Posts: 20
Location: India

PostPosted: Mon Aug 13, 2007 1:51 pm    Post subject: Unable to get sorting property
How can we check item wise because there are several kind of column like Date-Time,Integer and String so for each column we have to write different sorting code.

There is one properties of ListView called Sorting (to Gets or sets the sort order for items in the control) is vailalabe as you have metioned in help for Ranorexpro version.I am using Ranorexpro1.2 but i am not getting that property.I think some how this property will help us to check sorting
_________________
Regards,
Saurabh Shrivastava
GE Global Research
Bangalore India
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Tue Aug 14, 2007 8:08 pm    Post subject:
Quote:
There is one properties of ListView called Sorting ...


The Sorting property sorts items based on the item text (first column), you cannot use this property for the other columns. If you sort the items in the ListView based on a subitem property, then the ListView items are sorted manualy with the Sort method.

Quote:
How can we check item wise because there are several kind of column like Date-Time,Integer and String so for each column we have to write different sorting code.


Yes, this is right, you have to write a checking function for each kind of column.

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum