I have designed a form which contains a listview(to see the list records) and textboxes (used for adding or updating).
can already save record into table using this code:
cmd.Connection = con
cmd.CommandText = "INSERT INTO student_info_tbl VALUES('" & txtUserId.Text & "','" & txtFirstName.Text & "','" & txtMiddleName.Text & "','" & txtLastName.Text _
& "','" & cboSection.Text & "','" & txtPassword.Text & "')"
but the problem is I don't know how to refresh the data in my listview. The form must be closed then execute again to see the added data in the listview.
how can I refresh data in a listview?
thanks
can already save record into table using this code:
cmd.Connection = con
cmd.CommandText = "INSERT INTO student_info_tbl VALUES('" & txtUserId.Text & "','" & txtFirstName.Text & "','" & txtMiddleName.Text & "','" & txtLastName.Text _
& "','" & cboSection.Text & "','" & txtPassword.Text & "')"
but the problem is I don't know how to refresh the data in my listview. The form must be closed then execute again to see the added data in the listview.
how can I refresh data in a listview?
thanks