Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

BestFitMode Enum

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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