By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,022 Members | 1,354 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,022 IT Pros & Developers. It's quick & easy.

How to scroll a ListView to the Selected ListViewItem

P: n/a
I have a ListView (in Details view) with many ListViewItems. I
programatically Select a particularl ListViewItem but it doesn't
automatically scroll into view. Is there a way to do this?

Sep 12 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Use ListViewItem.EnsureVisible()
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"ssg31415926" <ne**********@gmail.comwrote in message
news:11********************@i42g2000cwa.googlegrou ps.com...
>I have a ListView (in Details view) with many ListViewItems. I
programatically Select a particularl ListViewItem but it doesn't
automatically scroll into view. Is there a way to do this?

Sep 12 '06 #2

P: n/a
Perfect! Thanks very much.

SSG

Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

Use ListViewItem.EnsureVisible()
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"ssg31415926" <ne**********@gmail.comwrote in message
news:11********************@i42g2000cwa.googlegrou ps.com...
I have a ListView (in Details view) with many ListViewItems. I
programatically Select a particularl ListViewItem but it doesn't
automatically scroll into view. Is there a way to do this?
Sep 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.