Quantcast
Channel: Set ListView scroll position
Viewing all articles
Browse latest Browse all 11

Set ListView scroll position

$
0
0

Hi,

 

Welcome to the MSDN forums.

 

A simple way to do this would be to use EnsureVisible(). So let us say you want the scroll to go to item 20

 

ListView1.Items[21].EnsureVisible();

 

or

 

ListView1.EnsureVisible(21);

 

HTH,

Suprotim Agarwal

 


Viewing all articles
Browse latest Browse all 11

Trending Articles