Skip to main content

ColumnView.CanResizeColumn(GridColumn) Method

Indicates whether end-users can resize a specific column by dragging its right edge.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public virtual bool CanResizeColumn(
    GridColumn column
)

Parameters

Name Type Description
column GridColumn

A GridColumn object representing the tested column.

Returns

Type Description
Boolean

true if end-users can resize the specified column; otherwise, false.

Remarks

For Card Views, the method always returns false. For the GridView and its descendants, the specified column’s OptionsColumn.AllowSize option value is returned.

Note that the CanResizeColumn method only indicates the availability of the column resizing feature to end-users. You can change column widths using the GridColumn.Width property regardless of this method’s return value.

See Also