Skip to main content
A newer version of this page is available. .

BaseColumn.AllowResizing Property

Gets or sets whether an end user can resize this column. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v21.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public DefaultBoolean AllowResizing { get; set; }

Property Value

Type Description
DefaultBoolean

Specifies whether an end user can resize this column.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

End users are allowed to resize columns if the view’s TableView.AllowResizing property is set to true. Individual columns provide the AllowResizing property, allowing the default behavior specified by the view, to be overridden. Setting this property to true or false overrides the default behavior. This can be useful when it is required to prevent an end user from resizing individual columns.

If the AllowResizing property is set to Default, the ability to resize columns is controlled by the view’s TableView.AllowResizing property. In this instance, to obtain whether an end user can resize a column, use the BaseColumn.ActualAllowResizing property.

To learn more, see Columns Layout and Width.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowResizing 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.

See Also