EndEdit Method

DataRowView.EndEdit Method ()


Commits changes to the underlying DataRow and ends the editing session that was begun with BeginEdit. Use CancelEdit to discard the changes made to the DataRow.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public void EndEdit()

The following example edits a row in a DataView. calling the BeginEdit before, and EndEdit afterwards.

Private Sub EditRow(view As DataView)
    view.AllowEdit = True
    view(0)("FirstName") = "Mary"
    view(0)("LastName") = "Jones"
End Sub

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft