Inititates a request to complete an editing procedure.
[Visual Basic] Overrides Public Function Commit( _ ByVal dataSource As ListManager, _ ByVal rowNum As Integer _ ) As Boolean [C#] public override bool Commit( ListManager dataSource, int rowNum ); [C++] public: override bool Commit( ListManager* dataSource, int rowNum ); [JScript] public override function Commit( dataSource : ListManager, rowNum : int ) : Boolean;
true if the value was successfully committed; otherwise, false.
The method checks to ensure that an edit is indeed occurring. If so, it formats the value appropriately. If the value is a null reference (in Visual Basic Nothing), the method enters DBNull into the column; otherwise, it uses the SetColumnValueAtRow method to commit the value.
The method is called by the DataGrid when an editing operation is committed.
DataGridTextBoxColumn Class | DataGridTextBoxColumn Members | System.WinForms Namespace | Abort | Edit | DataGrid | DataGridColumn