Back to Devexpress

LookUpColumnInfoCollection.CreateColumn() Method

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-lookupcolumninfocollection.md

latest1.9 KB
Original Source

LookUpColumnInfoCollection.CreateColumn() Method

Creates a new column for a lookup editor.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual LookUpColumnInfo CreateColumn()
vb
Public Overridable Function CreateColumn As LookUpColumnInfo

Returns

TypeDescription
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

LookUpColumnInfoCollection Class

LookUpColumnInfoCollection Members

DevExpress.XtraEditors.Controls Namespace