TreeList.BestFitColumns(Boolean) Method
Modifies the width of each visible column so that the contents of its cells are not truncated, if possible. Allows you to resize columns to fit the treelist width.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
apply |
Boolean | true if the total width of columns must be equal to the control’s width after resizing; otherwise false. |
#Remarks
Call the BestFitColumns method to resize columns to the minimum width to display their contents without trimming, if possible.
The applyAutoWidth parameter is in effect if the TreeListOptionsView.AutoWidth option is disabled. Otherwise, the BestFitColumns method performs column resizing as if the applyAutoWidth parameter were set to true.
Use the TreeListOptionsView.BestFitNodes property to specify which nodes take part in calculating the largest column cell.
Note
All columns are resized when the Best
To apply the “best fit” functionality to a certain column, use the TreeListColumn.BestFit method.
Note
If the Tree