Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LookUpColumnInfoCollection.CreateColumn() Method

Creates a new column for a lookup editor.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.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