2

Closed

ListView problem with invisible items

description

Hi Tom,
 
I took the last code check-in and built a ListView with some TitleDetailsImageItem. I am using an external input device, so I have to do something to bring the selected item into view. The BringIntoView method works well when going down in the list. But when I reach the end and the first item should be brought into view, it's not working. I know that the item is selected, because I have some other text that is related to the item displayed in a textbox below the ListView. The same problem occurs when going directly from the first item to the last item or when going up in the list and reaching the items not visible. A small example here: I've got 6 items in a ListView, but only 4 are visible at one time. So when I scroll down to the last item (the 6th), then go up to the 3rd everything is ok, because the items are visible. But when I scroll further to the 2nd item, it is not brought into view.
 
Is this a known issue or may it be that this is a problem in my code? I call BringIntoView in that way: itemView.Items[position].BringIntoView(true); where position is the zero-based index of the item I want to bring into view.
 
Cheers,
 
Jan
Closed Sep 14, 2010 at 12:21 AM by Tom69

comments

janheg wrote Aug 19, 2010 at 8:49 AM

What came to my mind just now: I had the same issue with the old ListBox control and the 'normal' items before switching to the new code version.

wrote Aug 19, 2010 at 1:07 PM

wrote Aug 23, 2010 at 11:23 PM

Resolved with changeset 50726.

wrote Aug 23, 2010 at 11:26 PM

wrote Sep 14, 2010 at 12:21 AM

Resolved with changeset 51192.

wrote Feb 14, 2013 at 1:18 AM

wrote May 16, 2013 at 7:21 AM