C# Virtual Mode List View Click 1 Selects More Than One Items
Posted
by Samir
on Stack Overflow
See other posts from Stack Overflow
or by Samir
Published on 2010-06-07T04:09:35Z
Indexed on
2010/06/07
5:12 UTC
Read the original article
Hit count: 251
I have a list view with virtual mode set to true and other things. It doing ok. But
1) Say there are 25 items and 15 of them are visible, that is to see the rest of 10 items need to scroll down.
2) Before scrolling swap two items, say myItems[0], it must be visible & myItems[20], it must be not visible scroll required.
3) Now select the first item, it was swapped, you now have two items selected, both 0 indexed and 20 indexed ones.
When after swap, those two list view items are of same Position and same Bounds. But before 20-indexed item's Position was (-1, -1) and Bounds was (0,0,0,0).
How come 0-indexed item didn't change its position & size? How to solve this ?
© Stack Overflow or respective owner