Home Forums WinForms controls Xceed Grid for WinForms DisplayFormat when binding ComboBoxEditor to DataView Reply To: DisplayFormat when binding ComboBoxEditor to DataView

User (Old forums)
Post count: 23064

It should work fine with a DataView.  Here is a code snippet showing how to have the same column displayed in the DropDown as with the DisplayFormat in the TextBoxArea using a DataView :

//create DataView

DataView view = new DataView( this.northwindDataSet.Suppliers );

view.RowFilter =

“Country = ‘USA'”;

//Textbox = DisplayFormat, shows all columns, with DataView

WinComboBox comboCol = new WinComboBox( EnhancedBorderStyle.None );

comboCol.SetDataBinding( view,

“” );

comboCol.ValueMember =


comboCol.DisplayFormat =


foreach( ColumnInfo col in comboCol.Columns )


    if( col.Name != “CompanyName” )

    col.Visible =



gridControl1.Columns[ 0 ].CellEditorManager = new ComboBoxEditor( comboCol );


Imported from legacy forums. Posted by André (had 986 views)