LookUpColumnInfo(String) Constructor
Creates an instance of the LookUpColumnInfo class and sets its field name to the specified value.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
fieldName | String | The value to initialize the LookUpColumnInfo.FieldName property. |
Remarks
The constructor creates a column and sets its LookUpColumnInfo.FieldName property to the value 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
- LookUpColumnInfo.Width to 20
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.
See Also