Hello all,
Any reason why:
always returns an empty string?
I am trying to loop through through all of the items and subitems in a listview control and add them to an xml doc like so:
However, I can't use the NAME prop of .columns(j) because it is always an empty string.
TIA
Any reason why:
VB.NET:
Debug.Print(Me.MyListView.Columns(0).Name.ToString)
always returns an empty string?
I am trying to loop through through all of the items and subitems in a listview control and add them to an xml doc like so:
VB.NET:
'loop through each item & Subtime and add element
For i = 0 To Me.MyListView.Items.Count - 1
.WriteStartElement("MyElemnt")
For j = 0 To Me.MyListView.Items(i).SubItems.Count - 1
.WriteElementString(Me.MyListView.Columns(j).name.ToString, Me.MyListView.Items(i).SubItems(j).Text)
Next j
.WriteEndElement()
Next i
However, I can't use the NAME prop of .columns(j) because it is always an empty string.
TIA