TreeListView.BestFitMaxRowCount Property
Gets or sets the number of records taken into account when calculating the optimal widths required for columns to completely display their contents. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value that specifies the number of records processed by a View to apply best fit. |
Remarks
By default, a column’s optimal width is calculated based on the text of all cells within this column. To increase the application’s performance, the number of records taken into account when calculating the optimal width can be limited by setting the TreeListView.BestFitMaxRowCount
(ColumnBase.BestFitMaxRowCount) property. By default, this property is set to -1, to indicate that all cells are processed. If the TreeListView.BestFitMaxRowCount
property is set to a positive value, a View processes the specified number of cells starting from the top visible cell.
To learn more, see Best Fit in Columns Layout and Width.