Export (0) Print
Expand All

DataRowView.EndEdit Method

Ends an edit procedure.

[Visual Basic]
Public Overridable Sub EndEdit() Implements IEditableObject.EndEdit
[C#]
public virtual void EndEdit();
[C++]
public: virtual void EndEdit();
[JScript]
public function EndEdit();

Implements

IEditableObject.EndEdit

Example

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

[Visual Basic] 

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

[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataRowView Class | DataRowView Members | System.Data Namespace | AcceptChanges | AllowDelete | AllowEdit | AllowNew | CancelEdit | DataRow | BeginEdit

Show:
© 2014 Microsoft