Skip to main content

TreeListView.CustomBestFit Event

Allows you to manually calculate the optimal width for a column(s).

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public event TreeListCustomBestFitEventHandler CustomBestFit

Event Data

The CustomBestFit event's data class is DevExpress.Xpf.Grid.TreeList.TreeListCustomBestFitEventArgs.

Remarks

The CustomBestFit event occurs before the Best Fit feature is applied to a column. Handle this event to manually calculate the optimal width for a column. You can do the following:

See Also