TreeListView.CustomBestFit Event

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

Namespace: DevExpress.Xpf.Grid

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

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