Back to Devexpress

OptionsColumn.AllowSize Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-optionscolumn-95067581.md

latest3.8 KB
Original Source

OptionsColumn.AllowSize Property

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

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if end-users can change the column’s width; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

XAF-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record/CS/EFCore/ButtonInListEF/ButtonInListEF.Win/Controllers/SimpleBusinessActionGridListViewController.cs#L65

csharp
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

csharp
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

vb
column.OptionsColumn.AllowEdit = False
column.OptionsColumn.AllowSize = False
column.UnboundType = Data.UnboundColumnType.Boolean

See Also

ColumnAutoWidth

Width

OptionsColumn Class

OptionsColumn Members

DevExpress.XtraGrid.Columns Namespace