FlexGrid for WinForms
AllowEditing Property (C1FlexGridBase)



Gets or sets whether the user is allowed to edit grid contents.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets or sets whether the user is allowed to edit grid contents.")>
<DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
Public Property AllowEditing As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim value As Boolean
 
instance.AllowEditing = value
 
value = instance.AllowEditing
[C1Description("Gets or sets whether the user is allowed to edit grid contents.")]
[DefaultValue()]
[C1Category("Behavior")]
public bool AllowEditing {get; set;}
[C1Description("Gets or sets whether the user is allowed to edit grid contents.")]
[DefaultValue()]
[C1Category("Behavior")]
public:
property bool AllowEditing {
   bool get();
   void set (    bool value);
}
Remarks

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

To enable editing on some rows and columns, set 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 BeforeEdit event and setting the Cancel event parameter to true.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback