ListViewItems display order and Index

M

momonga

hi
i'm not sure about the ListView control.
Can I assume that the each displayed items in the ListView are ordered
same to the order in the ListView.ListViewItemCollection?

thanks.
 
J

Jeff Johnson

i'm not sure about the ListView control.
Can I assume that the each displayed items in the ListView are ordered
same to the order in the ListView.ListViewItemCollection?

Well, first off you have to realize that the list view has several display
modes (icons, small icons, list, etc.). Are you talking about one of these
modes in particular? A little more detail, please.
 
M

momonga

Well, first off you have to realize that the list view has several display
modes (icons, small icons, list, etc.). Are you talking about one of these
modes in particular? A little more detail, please.
Thanks for replying.
I mean the "Detailes" mode.
 
J

Jeff Johnson

Thanks for replying.
I mean the "Detailes" mode.

Okay. For reference, this is technically called "report" view, but most
people call it "details" anyway, so we understand what you mean.

The answer to your question is "Yes...basically." It is possible to sort a
list view, and I'm not sure if this physically reorders the list item
collection, but I'm pretty sure it's safe to say that if you have not taken
any explicit steps to change the display order, then the list items will be
displayed in the same order that they are in the collection.

Ganbatte.
 
M

momonga

Okay. For reference, this is technically called "report" view, but most
people call it "details" anyway, so we understand what you mean.

The answer to your question is "Yes...basically." It is possible to sort a
list view, and I'm not sure if this physically reorders the list item
collection, but I'm pretty sure it's safe to say that if you have not taken
any explicit steps to change the display order, then the list items will be
displayed in the same order that they are in the collection.

Ganbatte.

Thanks a lot!
I have tried that, when i changed the physical order in the
ListItemCollection, the display order had been also changed.
its really enough for my case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top