Hi

Does anybody know how to programmatically select items (rows) of a ListView in C#.NET

Thanks in advanc
Dave

RE: How to programmatically select items (rows) of a ListView in C#.NET? by anonymous

anonymous
Sun Feb 22 17:01:07 CST 2004

I found the solution. Here is it

// create a listvie
System.Windows.Forms.ListView lx = new System.Windows.Forms.ListView ()

//add a ro
lx.Items.Add (new ListViewItem ("Hello"))

// select the row at index 0 (in this case our row with hello as the text
lx.Items[0].Selected = true

This algorithm was sent to me by Richard Sadler and Norman Yua
Thanks guys!