G
Guest
private void RetreiveVirtualItem( object sender, RetrieveVirtualItemEventArgs
e )
{
e.Item = new ListViewItem( e.ItemIndex.ToString() );
}
Take this for example; works fine.
Now if I want to associate a image with the item I would use a different
constructor and pass a string image key.
My problem is, how do I assign a value to e.ImageList. It is read only and
it seems that the ListView object itself doesnt assign it's own ImageList to
the e.Item
So how do I use Virtual lists and assign a ImageList to a ListViewItem?
e )
{
e.Item = new ListViewItem( e.ItemIndex.ToString() );
}
Take this for example; works fine.
Now if I want to associate a image with the item I would use a different
constructor and pass a string image key.
My problem is, how do I assign a value to e.ImageList. It is read only and
it seems that the ListView object itself doesnt assign it's own ImageList to
the e.Item
So how do I use Virtual lists and assign a ImageList to a ListViewItem?