Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxTreeListOptionsBehavior.BestFitMaxRecordCount Property

Specifies the number of nodes whose contents will be taken into account in calculating the column‘s best-fit width.

#Declaration

Delphi
property BestFitMaxRecordCount: Integer read; write; default -1;

#Property Value

Type
Integer

#Remarks

This property is used by the ApplyBestFit method to check the contents of the specified number of visible nodes (starting from the top node in the View), so that columns will be adjusted to the widest contents of those nodes. Contents of other nodes will be ignored.

If the BestFitMaxRecordCount property is -1, then contents of all visible nodes will be checked (see the tree list’s AbsoluteVisibleItems property).

The default value of the BestFitMaxRecordCount property is -1.

See Also