hello buddy,
I have a problem about listview update data
the first I input data from textbox to listview, after listview have many data/row, I want to update data only one click button use query WHERE ID
the problem : I just can save first row only, not all or only by selected..
How to update all data in listview
mycode :
If ListView1.Items.Count > 0 Then
strSQL = "Update errorlog set errorreport = errorreport - '" & ListView1.Items(0).SubItems(1).Text & "' where idreport = '" & ListView1.Items(0).SubItems(0).Text & "'"
Dim da As New MySqlDataAdapter(strSQL, CONNECTION)
da.Fill(ds)
Me.Refresh()
MsgBox("Success")
Else
MsgBox("Error")
End If
please, help to fix it ..
thank you :)