D
Danny Carvajal
I have a listview that looks like this:
column1 column2
1, 1
2, 2
3, 3
I want to figure out (without looping) what index the item starting with
"2" is located in. I tried:
ListViewItem lv = new ListViewItem( "2" );
MessageBox.Show( this.listView1.Items.IndexOf( lv ).ToString() );
Doesn't work. Any suggestions as to how I can do this?
Thanks!
column1 column2
1, 1
2, 2
3, 3
I want to figure out (without looping) what index the item starting with
"2" is located in. I tried:
ListViewItem lv = new ListViewItem( "2" );
MessageBox.Show( this.listView1.Items.IndexOf( lv ).ToString() );
Doesn't work. Any suggestions as to how I can do this?
Thanks!