System.Windows.Forms.DataGrid.BeginEdit Method

Attempts to put the grid into a state where editing is allowed.

Syntax

public bool BeginEdit (DataGridColumnStyle gridColumn, int rowNumber)

Parameters

gridColumn
A System.Windows.Forms.DataGridColumnStyle to edit.
rowNumber
The number of the row to edit.

Returns

true if the method is successful; otherwise, false.

Remarks

The grid will deny edit requests if the user already started typing into a cell. In that case, the DataGrid.BeginEdit(DataGridColumnStyle, int) method will return false.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0