471,347 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

ListviewSorter not working properly.

Hi all,
I am facing some strange problem in listview in .net.
I have written one class for sorting of listview which i have derived
from icomparer.

Now i am adding some element to listview and then i am setting
listitemsorter property of listview to my first column.

Say support i am adding element as 13,11,14.

After applying sorter it is displaying element in ascending order like
11 13 14.

But the problem is when i try to access 1 element of first row that is
11, it is giving me element as 13 means it is consider order before
sorting.

Can someone tell me why this is happening.

Any help will be truely appreciated.

Feb 15 '06 #1
1 1591
Hi,

"archana" <tr**************@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi all,
I am facing some strange problem in listview in .net.
I have written one class for sorting of listview which i have derived
from icomparer.

Now i am adding some element to listview and then i am setting
listitemsorter property of listview to my first column.

Say support i am adding element as 13,11,14.

After applying sorter it is displaying element in ascending order like
11 13 14.

But the problem is when i try to access 1 element of first row that is
11, it is giving me element as 13 means it is consider order before
sorting.


remember that the starting index of the Items collection is 0 , so the
second element (with index 1) is 13 , the first element (index 0 ) is 11
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Nita Raju | last post: by
4 posts views Thread by qbproger | last post: by
5 posts views Thread by damezumari | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.