Starts editing a specific cell.

Namespace:  C1.Silverlight.FlexGrid
Assembly:  C1.Silverlight.FlexGrid.4 (in C1.Silverlight.FlexGrid.4.dll)

Syntax

C#
public bool StartEditing(
	bool fullEdit,
	int row,
	int col
)
Visual Basic
Public Function StartEditing ( _
	fullEdit As Boolean, _
	row As Integer, _
	col As Integer _
) As Boolean

Parameters

fullEdit
Type: System..::..Boolean
Whether to stay in edit mode when the user presses the cursor keys.
row
Type: System..::..Int32
Index of the row that contains the cell to be edited.
col
Type: System..::..Int32
Index of the column that contains the cell to be edited.

Return Value

True if the grid entered edit mode.

Remarks

Editing in the C1FlexGrid is similar to editing in Excel:

Pressing F2 or double-clicking a cell puts the grid in full-edit mode. In this mode, the cell editor remains active until the user presses Enter, Tab, or Escape, or until he moves the selection with the mouse. In full-edit mode, pressing the cursor keys does not cause the grid to exit edit mode.

Typing text directly into a cell puts the grid in quick-edit mode. In this mode, the cell editor remains active until the user presses Enter, Tab, or Escape, or any arrow keys. In quick-edit mode, pressing the cursor keys causes the grid to exit edit mode.

Full-edit mode is normally used to make changes to existing values. Quick-edit mode is normally used for entering new data quickly.

While editing, the user can toggle between full and quick modes by pressing the F2 key.

The fullEdit parameter determines whether the grid should enter edit mode in full or quick mode.

For more details on advanced editing features such as auto-complete, list selection, and data-mapped columns, see the ColumnValueConverter class.

See Also