DataGridView::BeginEdit Method (Boolean)
Puts the current cell in edit mode.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
true to select all the cell's contents; false to not select any contents.
Return ValueType: System::Boolean
true if the current cell is already in edit mode or successfully enters edit mode; otherwise, false.
This method returns false if the cell fails to enter edit mode, which can happen for a number of reasons. This method returns false if the current cell is read-only. It also returns false if the cell EditType property is null (meaning the cell cannot host an editing control) and the cell type does not implement the IDataGridViewEditingCell interface.
If the cell supports editing, this method raises the CellBeginEdit event, which can be canceled, and returns false if an event handler cancels the edit. If the edit is not canceled and the cell can host an editing control, this method initializes the control and displays it. If the initialization fails, this method returns false.
If the cell successfully enters edit mode, the IsCurrentCellInEditMode property returns true.
Available since 2.0