Back to Devexpress

ColumnView.CanResizeColumn(GridColumn) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-dot-canresizecolumn-x28-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-x29.md

latest2.5 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
public virtual bool CanResizeColumn(
    GridColumn column
)
vb
Public Overridable Function CanResizeColumn(
    column As GridColumn
) As Boolean

Parameters

NameTypeDescription
columnGridColumn

A GridColumn object representing the tested column.

|

Returns

TypeDescription
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

AllowSize

CardView

GridView

Width

ColumnView Class

ColumnView Members

DevExpress.XtraGrid.Views.Base Namespace