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

TcxCustomGridTableItem.BestFitMaxWidth Property

Specifies the item’s (column) maximum width value (in pixels) for the best fit.

#Declaration

Delphi
property BestFitMaxWidth: Integer read; write; default 0;

#Property Value

Type Default
Integer 0

#Remarks

This property value limits the maximum column width that is applied by calling the ApplyBestFit procedure. If the BestFitMaxWidth property is set to 0, the ApplyBestFit procedure calculates new item widths automatically.

The BestFitMaxWidth property automatically updates its value by multiplying it by the DPI-aware form’s scaling factor every time it changes.

The default value of the BestFitMaxWidth property is 0.

See Also