Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
virtual void EndEdit() sealed

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:
© 2017 Microsoft