TableView.AllowResizing Property
Gets or sets whether an end-user can change column widths by dragging the edges of their headers.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true to allow an end-user to change column widths; otherwise, false. |
Remarks
End-users are allowed to resize columns if the view’s AllowResizing property is set to true. Individual columns provide the BaseColumn.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 column’s BaseColumn.AllowResizing property is set to ‘Default’, the ability to resize columns is controlled by the view’s 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 and Resizing Columns and Cards.
Related GitHub Examples
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.