Skip to main content

TreeListView.CustomBestFit Event

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

Namespace: DevExpress.Xpf.Grid

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

#Declaration

public event TreeListCustomBestFitEventHandler CustomBestFit

#Event Data

The CustomBestFit event's handler receives an argument of the DevExpress.Xpf.Grid.TreeList.TreeListCustomBestFitEventArgs type.

#Remarks

The CustomBestFit event is raised before the Best Fit feature is applied to a column, allowing you to manually calculate the optimal width for a column. When handling this event, you can do the following:

To learn more, see Best Fit in Columns Layout and Width.

See Also