A newer version of this page is available. Switch to the current version.

BestFitMode Enum

Contains values that specify "best-fit" modes for lookup editors.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public enum BestFitMode
Public Enum BestFitMode

Members

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.

Related API Members

The following properties accept/return BestFitMode values:

Remarks

Lookup editors support the "best-fit" functionality that calculates the best width for columns in an editor's dropdown. Use the RepositoryItemLookUpEditBase.BestFitMode property to specify the "best-fit" mode for lookup editors.

See Also