FlexGrid for WPF | ComponentOne
C1.WPF.FlexGrid.4.6.2 Assembly / C1.WPF.FlexGrid Namespace / C1FlexGrid Class / StartEditing Method / StartEditing(Boolean,Int32,Int32) Method
Whether to stay in edit mode when the user presses the cursor keys.
Index of the row that contains the cell to be edited.
Index of the column that contains the cell to be edited.

In This Topic
    StartEditing(Boolean,Int32,Int32) Method
    In This Topic
    Starts editing a specific cell.
    Syntax
    'Declaration
     
    Public Overloads Function StartEditing( _
       ByVal fullEdit As Boolean, _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) As Boolean
    public bool StartEditing( 
       bool fullEdit,
       int row,
       int col
    )

    Parameters

    fullEdit
    Whether to stay in edit mode when the user presses the cursor keys.
    row
    Index of the row that contains the cell to be edited.
    col
    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