windowsforms-devexpress-dot-xtragrid-dot-columns-dot-optionscolumn-95067581.md
Gets or sets whether end-users can drag the column header’s right edge to change the column’s width.
Namespace : DevExpress.XtraGrid.Columns
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowSize { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowSize As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if end-users can change the column’s width; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowSize |
|---|---|
| GridColumn |
.OptionsColumn .AllowSize
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowSize 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.
buttonColumn.OptionsColumn.AllowShowHide = false;
buttonColumn.OptionsColumn.AllowSize = false;
buttonColumn.OptionsColumn.AllowSort = DefaultBoolean.False;
winforms-grid-multiple-row-selection-web-style-checkboxes/CS/E1271/CheckMarkSelection.cs#L124
column.OptionsColumn.AllowEdit = false;
column.OptionsColumn.AllowSize = false;
column.UnboundType = DevExpress.Data.UnboundColumnType.Boolean;
winforms-grid-multiple-row-selection-web-style-checkboxes/VB/E1271/CheckMarkSelection.vb#L153
column.OptionsColumn.AllowEdit = False
column.OptionsColumn.AllowSize = False
column.UnboundType = Data.UnboundColumnType.Boolean
See Also