Hi,
"ttan" <tt**@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
In ListBox, I can use SelectedIndex to set for current selected item.
for(int x = 0; x <25; x++)
listBox1.Items.Add(x.ToString());
listBox1.SelectedIndex = 10;
How to do the same for ListView?
You use ListViewItemItem.Selected , so the code should be:
listview1.Items[ 10].Selected = true;
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation