Reputation: 119
i have 3 listboxes in a pivot page. Normaly when i write something like: listBox3.SelectedIndex = 10;
the item is selected and is displayed. No i have the problem, that the right item is selected, but that the listbox doesnt scroll to the selected item. Does someone has an idea what problem this is?
Upvotes: 1
Views: 402
Reputation: 109089
Use the ScrollIntoView
method.
listBox3.SelectedIndex = 10;
listBox3.ScrollIntoView( listBox3.SelectedItem );
Upvotes: 3