Skip to main content

RepositoryItem.BestFitWidth Property

Gets or sets the editor’s best fit width.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

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