LookUpColumnInfo() Constructor
Creates an instance of the LookUpColumnInfo class and sets its properties to default values.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Remarks
The constructor creates a column and sets its properties as follows:
- LookUpColumnInfo.FieldName and LookUpColumnInfo.Caption to empty strings
- LookUpColumnInfo.Alignment to HorzAlignment.Default
- LookUpColumnInfo.FormatType to FormatType.None
- LookUpColumnInfo.FormatString to an empty string
- LookUpColumnInfo.Visible to true
- LookUpColumnInfo.Width to 20
For a lookup column, as a minimum you need to specify its field name. This determines the field whose values will be displayed in the column. See the LookUpColumnInfo.FieldName property for more information.
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.