I have a list of items and beside it I have buttons. I want functionality in such a way that, when I click on button, the corresponding item from the list view has to display on the top of the list. For this I thought scrollintoview will work, but unfortunately it is not working. Any suggestions?
....
lstview.SelectedItem = lstview.Items.GetItemAt(lstview.SelectedIndex);
lstview.ScrollIntoView(lstview.SelectedItem);
lstview.UpdateLayout();
.....