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

RepositoryItem.BestFitWidth Property

Gets or sets the editor’s best fit width.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public virtual int BestFitWidth { get; set; }

#Property Value

Type Description
Int32

An integer value that specifies the editor’s best fit width, in pixels.

#Remarks

When using an in-place editor (e.g. in the Grid Control control), use the BestFitWidth property to manually specify its best fit width. This specifies the width to which a column will be resized after the container control’s GridView.BestFitColumns method has been called.

Setting the BestFitWidth property to -1 resizes the column to the minimum width required to display its entire content.

See Also