NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGridTextBoxColumn.Commit

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;

Parameters

dataSource
The TBD of the DataGrid control the column belongs to.
rowNum
The number of the edited row.

Return Value

true if the value was successfully committed; otherwise, false.

Remarks

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.

See Also

DataGridTextBoxColumn Class | DataGridTextBoxColumn Members | System.WinForms Namespace | Abort | Edit | DataGrid | DataGridColumn