Skip to main content
Tag

ColumnBase.BestFitMaxRowCount Property

Gets or sets the number of cells taken into account when calculating the optimal width required for the column to completely display its contents.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public int BestFitMaxRowCount { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the number of cells processed by a View to apply best fit.

Remarks

The BestFitMaxRowCount property allows you to override the behavior specified by a View. If this property is set to -1, the number of cells processed by a View to calculate the column’s optimal width, is specified by the TableView.BestFitMaxRowCount property.

To learn more, see TableView.BestFitMaxRowCount and Best Fit in Columns Layout and Width.

See Also