all groups > vb.net controls > july 2005 >
You're in the

vb.net controls

group:

Controlling ListView Selection programatically


Controlling ListView Selection programatically Jon Masterson
7/22/2005 12:00:00 AM
vb.net controls:
Hi All

I am working on converting an application from using a listbox to a list
view so that I can have multiple columns showing different parameters.
With the listbox I can use listbox.SelectedIndex to set the current
selected item - there does not appear to be a simple way to do this iwit
hthe ListView. I want to be able to change the selection using buttons,
and to set the start point selection programmatically. Any pointers much
appreciated

Re: Controlling ListView Selection programatically Atul
7/23/2005 12:00:00 AM
Use the ListViewItem.Selected property.

-Atul
http://www.ssware.com/
Shell MegaPack - Windows Explorer Shell Controls for ActiveX and .Net


[quoted text, click to view]

AddThis Social Bookmark Button