-
April 3rd, 2012, 09:21 AM
#1
Sorted list and listview in virtualmode
Hello !!
Question 1 : am I crasy to attempt this ?
Question 2 :
Here is my sorted list declaration, it's already been populated :
private SortedList<String, FileRepresentation> myFiles = new SortedList<String, FileRepresentation>();
My big problem is that I don't know how to draw my item as I don't have an index inside !!
Code:
void listView1_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e)
{
int i = e.ItemIndex;
e.Item = new ListViewItem(
}
if I understood well, the frameworks calls in e the index it requires to draw, right ?
If yes how can I draw the good item from my sortedlist ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|