Working with listview - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Working with listview

locoloco Posts: 173Member
Hi

I am looking for information regarding the ListView. First I want to know how I can access the index of the selected Items. My listView has 4 collumns and I need to display a MessageBox of the selected row together with the index number. I need to also be able to delete the selected row from the listview.

Thanks in advance.

Comments

  • nhut.nguyennhut.nguyen Posts: 12Member
    listView1.Items[i].SubItems[2].Text.ToString()

    Get value rows depend on index i
    : Hi
    :
    : I am looking for information regarding the ListView. First I want to know how I can access the index of the selected Items. My listView has 4 collumns and I need to display a MessageBox of the selected row together with the index number. I need to also be able to delete the selected row from the listview.
    :
    : Thanks in advance.
    :

Sign In or Register to comment.