windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-dot-canresizecolumn-x28-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-x29.md
Indicates whether the specified column’s settings allow end-users to resize the column.
Namespace : DevExpress.XtraGrid.Views.Grid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public override bool CanResizeColumn(
GridColumn column
)
Public Overrides Function CanResizeColumn(
column As GridColumn
) As Boolean
| Name | Type | Description |
|---|---|---|
| column | GridColumn |
A GridColumn object (or descendant) representing the tested column.
|
| Type | Description |
|---|---|
| Boolean |
true if end-users can resize the specified column; otherwise, false.
|
This member supports the grid control’s internal infrastructure and is not intended to be used in your code.
The CanResizeColumn method returns its value with respect to the specified column’s OptionsColumn.AllowSize option state. Views use this method for the following purposes:
Important note : the actual column resizing availability may not match the method’s return value. For instance, the last visible column cannot be resized when the columns auto width feature is applied (the View’s GridOptionsView.ColumnAutoWidth option is enabled). A mismatch can also occur when you override the default View behavior via code.
See Also