Back to Devexpress

RepositoryItem.BestFitWidth Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-452d6d68.md

latest1.7 KB
Original Source

RepositoryItem.BestFitWidth Property

Gets or sets the editor’s best fit width.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual int BestFitWidth { get; set; }
vb
<Browsable(False)>
Public Overridable Property BestFitWidth As Integer

Property Value

TypeDescription
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

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace