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.v21.1.Core.dll


public int BestFitMaxRowCount { get; set; }

Property Value

Type Description

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


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