TreeListView.CustomBestFit Event

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public event TreeListCustomBestFitEventHandler CustomBestFit
Public Event CustomBestFit As TreeListCustomBestFitEventHandler

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