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

LookUpColumnInfo.Width Property

Gets or sets the width of the current column.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(20)]
[DXCategory("Layout")]
public int Width { get; set; }

#Property Value

Type Default Description
Int32 20

The width of the current column.

#Remarks

The Width property specifies the column width relative to the other columns. This is not an absolute but a relative value. The actual column’s width is affected by the client width of the dropdown window.

For instance, if you have two columns whose widths are set to 10 and 20 and the client popup width is 300, actual column widths will be 100 (10300/(10+20)) and 200 (20300/(10+20)) respectively.

The RepositoryItemLookUpEdit.PopupWidth property specifies the total popup width. This includes the client popup width, borders, vertical scrollbar and shadow, if any.

The RepositoryItemLookUpEdit.BestFit method allows you to calculate columns’ widths according to their contents.

See Also