windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-lookupcolumninfo-ee25370c.md
Gets or sets the width of the current column.
Namespace : DevExpress.XtraEditors.Controls
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(20)]
[DXCategory("Layout")]
public int Width { get; set; }
<DefaultValue(20)>
<DXCategory("Layout")>
Public Property Width As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 20 |
The width of the current column.
|
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 (10_300/(10+20)) and 200 (20_300/(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