Skip to main content

LookUpColumnInfoCollection.CreateColumn() Method

Creates a new column for a lookup editor.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual LookUpColumnInfo CreateColumn()

Returns

Type Description
LookUpColumnInfo

A LookUpColumnInfo object that has been created.

Remarks

This method creates a new instance of the LookUpColumnInfo class with default settings. Then use the column’s properties to initialize its bound field, caption, width, etc. It’s also possible to create a lookup column and initialize its settings directly via the LookUpColumnInfo class constructor.

After a column has been created, it must be added to the RepositoryItemLookUpEdit.Columns collection.

See Also