Skip to main content

RepositoryItem.BestFitWidth Property

Gets or sets the editor’s best fit width.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual int BestFitWidth { get; set; }

Property Value

Type Description

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


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