Back to Devexpress

CustomBestFitEventArgsBase.BestFitRows Property

wpf-devexpress-dot-xpf-dot-grid-dot-custombestfiteventargsbase-ea4b0a71.md

latest1.8 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public IEnumerable<int> BestFitRows { get; set; }
vb
Public Property BestFitRows As IEnumerable(Of Integer)

Property Value

TypeDescription
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

CustomBestFitEventArgsBase Class

CustomBestFitEventArgsBase Members

DevExpress.Xpf.Grid Namespace