System.Data Namespace DataRowView Class
Ends an edit procedure.
[ VB ]
NotOverridable Public Sub EndEdit ( )
[ C# ]
public void EndEdit ( );
[ C++ ]
public: __sealed void EndEdit ( );
[ JScript ]
public function EndEdit ( );
The following example edits a row in a DataView. calling the BeginEdit before, and EndEdit afterwards.
private void EditRow ( dv As DataView ) {
dv.AllowEdit = True;
dv [ 0 ].BeginEdit;
dv [ 0 ] [ "FirstName" ] = "Mary";
dv [ 0 ] [ "LastName" ] = "Jones";
dv [ 0 ].EndEdit;
}
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# |
VB |
DataRowView Members AcceptChanges AllowDelete AllowEdit AllowNew CancelEdit DataRow BeginEdit