Back to Devexpress

TreeListOptionsColumn.AllowMove Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistoptionscolumn-09b953fc.md

latest6.1 KB
Original Source

TreeListOptionsColumn.AllowMove Property

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowMove { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AllowMove As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if end-users can drag the column’s header; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowMove
TreeListColumn

.OptionsColumn .AllowMove

|

Remarks

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

csharp
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L147

csharp
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;

winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L320

csharp
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;

winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L426

csharp
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;

winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L414

csharp
col1.OptionsColumn.AllowEdit = false;
col1.OptionsColumn.AllowMove = false;
col1.OptionsColumn.ReadOnly = true;

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L154

vb
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L140

vb
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L323

vb
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True

winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L418

vb
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True

winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L419

vb
col1.OptionsColumn.AllowEdit = False
col1.OptionsColumn.AllowMove = False
col1.OptionsColumn.ReadOnly = True

See Also

ShowColumns

TreeListOptionsColumn Class

TreeListOptionsColumn Members

DevExpress.XtraTreeList.Columns Namespace