FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / AllowEditing Property

In This Topic
    AllowEditing Property (C1FlexGrid)
    In This Topic
    Gets or sets whether the user is allowed to edit grid contents.
    Syntax
    'Declaration
     
    
    Public Property AllowEditing As Boolean
    public bool AllowEditing {get; set;}
    Remarks

    If you set C1FlexGridBase.AllowEditing to false, editing is disabled for the entire grid.

    To enable editing on some rows and columns, set C1FlexGridBase.AllowEditing to true for the grid and set the RowCol.AllowEditing or RowCol.AllowEditing properties to false for the rows and columns that should not be editable.

    You can also disable editing of specific cells by handling the C1FlexGridBase.BeforeEdit event and setting the Cancel event parameter to true.

    See Also