wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-5b2c41bb.md
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.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public int BestFitMaxRowCount { get; set; }
Public Property BestFitMaxRowCount As Integer
| Type | Description |
|---|---|
| Int32 |
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