FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / StartEditing Method / StartEditing() Method
Example

In This Topic
    StartEditing() Method
    In This Topic
    Puts the grid in edit mode and starts editing the current cell.
    Syntax
    'Declaration
     
    
    Public Overloads Function StartEditing() As Boolean
    public bool StartEditing()

    Return Value

    True if the grid entered edit mode successfully, false otherwise.
    Remarks

    If the AllowEditing property is set to true, the control goes into edit mode automatically when the user presses the edit key (F2), the space bar, or any printable character. You may use the StartEditing(Int32,Int32,Char) method to force the control into cell-editing mode.

    The StartEditing(Int32,Int32,Char) method forces the control into editing mode even if AllowEditing is set to False. You may also use it to allow editing of fixed cells.

    Example
    The code below uses the StartEditing(Int32,Int32,Char) method to keep the grid in edit mode while the user moves the selection (like the .NET DataGrid control):
    void _flex_RowColChange(object sender, System.EventArgs e)
    {
      _flex.StartEditing();
    }
    See Also