Back to Devexpress

TreeListView.CustomBestFit Event

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-a42c91f6.md

latest1.4 KB
Original Source

TreeListView.CustomBestFit Event

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

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public event TreeListCustomBestFitEventHandler CustomBestFit
vb
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:

  • Change the Best Fit Mode

  • Manually Specify Rows

See Also

Move and Resize Columns

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace