Hi,
How to edit a datatable(db col) on textbox lost focus event from textbox values. The edited values should display on listbox selectedindex changed event and finally on save button click event I want to save the updated records to db. Can I have some sample code for this?
I have some code in the textbox lost focus event but it is not saving the records to the datatable.
If dtTableUsers.Rows.Count > 0 Then
For i = 0 To dtTableUsers.Rows.Count - 1
dtTableUsers.Rows(i)("Mobile") = txtMobile.Text
Next
dtTableUsers.AcceptChanges()
End If
Thanks in Advance.
How to edit a datatable(db col) on textbox lost focus event from textbox values. The edited values should display on listbox selectedindex changed event and finally on save button click event I want to save the updated records to db. Can I have some sample code for this?
I have some code in the textbox lost focus event but it is not saving the records to the datatable.
If dtTableUsers.Rows.Count > 0 Then
For i = 0 To dtTableUsers.Rows.Count - 1
dtTableUsers.Rows(i)("Mobile") = txtMobile.Text
Next
dtTableUsers.AcceptChanges()
End If
Thanks in Advance.