Dim li As ListItem
Dim dTotal As Integer
For Each li In ListView1.ListItems
dTotal = Val(dTotal + CInt(li.SubItems(3)))
Next
txtgrade.Text = CStr(dTotal)
'returns the total value
data in LIST VIEW:
90
8
50
45
I used the codes above but I can only retrieve the values (45) ?? what seems to be the problem ..can anyone help me ... I'am a newbie ... I need to sum the columns in the list view the answer should be [193]