LookUpColumnInfo(String, Int32) Constructor
Creates an instance of the LookUpColumnInfo class and sets its field name and width to the specified values.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public LookUpColumnInfo(
string fieldName,
int width
)
#Parameters
Name | Type | Description |
---|---|---|
field |
String | The value to initialize the Look |
width | Int32 | The value to initialize the Look |
#Remarks
The constructor creates a column and sets its LookUpColumnInfo.FieldName and LookUpColumnInfo.Width properties to the values specified.
Other properties are set as follows:
- LookUpColumnInfo.Caption to an empty string
- LookUpColumnInfo.Alignment to HorzAlignment.Default
- LookUpColumnInfo.FormatType to FormatType.None
- LookUpColumnInfo.FormatString to an empty string
- LookUpColumnInfo.Visible to true
After a column has been created, you can add it to a lookup editor’s column collection by using the LookUpColumnInfoCollection.Add method, for instance. To access the column collection, see the RepositoryItemLookUpEdit.Columns property.