Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27186

VS 2010 ListView collect entries problem

$
0
0
Hi,
I have a listview with 2 collumns.
The properties of listview is:
Multiselect: False
View: Details,
GridLines: True
FullRowSelect: True
The user will add data to the listview.
At the end i want to save them. My code is:

For m As Integer = 0 To listview.Items.Count - 1
listview.Items(m).Selected = True
listview.Select()
text = text & RelevantList.FocusedItem.SubItems(0).Text & "," & RelevantList.FocusedItem.SubItems(1).Text & ","
Next

If my list has 10 rows, i am getting 10 times the first row.
I can not get the text from the second,third,..... row
Any ideas what am i doing wrong?
Thanks

Viewing all articles
Browse latest Browse all 27186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>