DataRowView.EndEdit Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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).BeginEdit
    view(0)("FirstName") = "Mary"
    view(0)("LastName") = "Jones"
    view(0).EndEdit
End Sub

.NET Framework
Available since 1.1
Return to top
Show: