G
Guest
I have difficulties in retreiving the data from XMl file that i have created. By using the coding as below, i m able to retrieve only 2 fields and display it in the listview
Below are my coding and XML file that i have created
CODING
Private Sub RegisterListView(
Dim item As ListViewIte
lvwDisplay.Items.Clear(
For Each row As DataRow In TransTable.Row
item = New ListViewItem(row("Category").ToString()
If Not (row("Type") Is Nothing) The
item.SubItems.Add(String.Format("{0:F2}", row("Type").ToString())
End I
lvwDisplay.Items.Add(item
Next ro
End Su
XML Fil
-<Table1><Desc>566</Desc><Category>ttgg</Category><Type>Deposit</Type><Amount>667</Amount></Table1
- <Table1><Desc>tt6t</Desc><Category>rrt</Category><Type>Decrease</Type><Amount>566</Amount></Table1>
Below are my coding and XML file that i have created
CODING
Private Sub RegisterListView(
Dim item As ListViewIte
lvwDisplay.Items.Clear(
For Each row As DataRow In TransTable.Row
item = New ListViewItem(row("Category").ToString()
If Not (row("Type") Is Nothing) The
item.SubItems.Add(String.Format("{0:F2}", row("Type").ToString())
End I
lvwDisplay.Items.Add(item
Next ro
End Su
XML Fil
-<Table1><Desc>566</Desc><Category>ttgg</Category><Type>Deposit</Type><Amount>667</Amount></Table1
- <Table1><Desc>tt6t</Desc><Category>rrt</Category><Type>Decrease</Type><Amount>566</Amount></Table1>