windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistoptionscolumn-09b953fc.md
Gets or sets whether end-users can drag the column’s header.
Namespace : DevExpress.XtraTreeList.Columns
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowMove { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AllowMove As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if end-users can drag the column’s header; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowMove |
|---|---|
| TreeListColumn |
.OptionsColumn .AllowMove
|
Headers can be dragged within the column header panel to reorder columns or dragged to the Customization Form to hide columns.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowMove 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.
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L159
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;
winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L147
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;
winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L320
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;
winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L426
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;
winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L414
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L154
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True
winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L140
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True
winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L323
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True
winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L418
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True
winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L419
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True
See Also