windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistoptionscolumn.md
Specifies if users can edit column values in tree list cells (inplace edit mode).
Namespace : DevExpress.XtraTreeList.Columns
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowEdit { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AllowEdit As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to allow users to edit cell values; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowEdit |
|---|---|
| TreeListColumn |
.OptionsColumn .AllowEdit
|
The AllowEdit option is in effect if the tree list’s TreeList.OptionsBehavior.Editable property is set to true and the EditingMode property is set to Default or Inplace.
Handle the TreeList.ShowingEditor event to prevent a user from changing the value in individual cells. This event occurs when an inplace editor is about to open, and allows you to cancel this action.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowEdit property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
if (modelColumn != null)
columnWrapper.Column.OptionsColumn.AllowEdit = modelColumn.AllowEdit;
}
winforms-treelist-unbound-columns/CS/TreeList_UnboundDataViaEvent/Form1.cs#L29
unbColumnMarchChange.Visible = true;
unbColumnMarchChange.OptionsColumn.AllowEdit = false;
unbColumnMarchChange.FieldName = "ChangeFromPrevYear";
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L158
col1.VisibleIndex = 0;
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L146
col1.VisibleIndex = 0;
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L319
col1.VisibleIndex = 0;
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
winforms-treelist-unbound-columns/VB/TreeList_UnboundDataViaEvent/Form1.vb#L24
unbColumnMarchChange.Visible = True
unbColumnMarchChange.OptionsColumn.AllowEdit = False
unbColumnMarchChange.FieldName = "ChangeFromPrevYear"
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L153
col1.VisibleIndex = 0
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L139
col1.VisibleIndex = 0
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L322
col1.VisibleIndex = 0
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L417
col1.VisibleIndex = 0
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
See Also