How to: Create a Column and Assign an Editor to It
The following example demonstrates how to create a column within a View, and assign a specific editor to it.
using DevExpress.XtraGrid.Views.BandedGrid;
using DevExpress.XtraEditors.Repository;
//...
BandedGridColumn col = advBandedGridView1.Columns.Add("Country") as BandedGridColumn;
advBandedGridView1.Bands[0].Columns.Add(col);
col.Visible = true;
RepositoryItemLookUpEdit columnEditor = new RepositoryItemLookUpEdit();
//customizing the column editor
//...
gridControl1.RepositoryItems.Add(columnEditor);
col.ColumnEdit = columnEditor;
See the Cell Values, Editors, and Validation topic for more information about column editors.