Skip to main content

CustomBestFitEventArgsBase.BestFitRows Property

Rows that should be taken into account when calculating the optimal width of CustomBestFitEventArgs.Column.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v23.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public IEnumerable<int> BestFitRows { get; set; }

Property Value

Type Description
IEnumerable<Int32>

An array of row handles that correspond to data rows.

Remarks

The BestFitRows property allows you to specify the exact cells in the processed column to be used to calculate its optimal width. Set the BestFitRows property to a collection of row handles. The column’s optimal width will be calculated according to the content of data cells that correspond to the processed column and the specified rows.

To learn more, see Best Fit in Move and Resize Columns.

See Also