Get value of ListView item and subitems.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello,

I have a ListView with 3 Columns

I would like to get the text from the subitems.

Found this code:
<font size=2>textBox1.Text= ListView1.SelectedItems[1].SubItems[1].Text;


</font>But i get an exeption:
InvalidArgument=Value of 1 is not valid for index.
Parameter name: index


The ListView1s property Multi select is False.

Can any1 help me?

Thanks!<hr class="sig Student

View the full article
 
Back
Top