RepositoryItemLookUpEditBase.BestFitMode Property

Gets or sets the “best-fit” mode for columns in the dropdown window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(BestFitMode.None)]
public BestFitMode BestFitMode { get; set; }

Property Value

Type Default Description
BestFitMode

None

A BestFitMode value that specifies the “best-fit” mode for columns in the dropdown window.

Available values:

Name Description
None

The “best-fit” functionality is not invoked.

BestFit

The “best-fit” functionality is invoked when opening the dropdown window for the first time, changing the proportional widths of the columns to best fit their contents.

BestFitResizePopup

The “best-fit” functionality is invoked when opening the dropdown window for the first time, changing the proportional widths of the columns according to their contents and resizing the dropdown window to fit all the columns.

The dropdown window cannot be reduced to a size less than the minimum size specified by the editor’s RepositoryItemPopupBase.PopupFormMinSize property.

Remarks

The “best-fit’ feature proportionally resizes the columns in the dropdown according to their contents. For a description of the available best-fit modes, see BestFitMode.

See Also