Skip to main content
Tag

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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