Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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