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
#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.