[]
Starts editing the cell that is currently selected.
public bool StartEditing(bool fullEdit)
Type | Name | Description |
---|---|---|
bool | fullEdit | Whether to stay in edit mode when the user presses the cursor keys. |
Type | Description |
---|---|
bool | True if the grid entered edit mode. |
<p>For more details on the effects of the <code class="paramref">fullEdit</code> parameter,
see the StartEditing(bool, int, int) method.
For more details on advanced editing features such as auto-complete, list selection, and data-mapped columns, see the ColumnValueConverter class.
Starts editing a specific cell.
public bool StartEditing(bool fullEdit, int row, int col)
Type | Name | Description |
---|---|---|
bool | fullEdit | Whether to stay in edit mode when the user presses the cursor keys. |
int | row | Index of the row that contains the cell to be edited. |
int | col | Index of the column that contains the cell to be edited. |
Type | Description |
---|---|
bool | True if the grid entered edit mode. |
<p>Editing in the <xref href="C1.WPF.FlexGrid.C1FlexGrid" data-throw-if-not-resolved="false"></xref> is similar to editing in Excel:</p>
<p>Pressing F2 or double-clicking a cell puts the grid in <b>full-edit</b> 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.