Share via

BindingSource1.EndEdit()

Janewu77 1 Reputation point
2022-08-09T09:36:25.017+00:00

Hi VB Experts,

may I ask if there is any way to edit the datagridview after applying the following codes?

Try
Me.Validate()
Me.CustomersBindingSource.EndEdit()
Me.CustomersTableAdapter.Update(Me.NorthwindDataSet.Customers)
MsgBox("Update successful")

Catch ex As Exception
MsgBox("Update failed")
End Try

Regards

Jane

Developer technologies | VB

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.