Home Forums WinForms controls Xceed Grid for WinForms Rebind WinComboBox for current row only Reply To: Rebind WinComboBox for current row only

User (Old forums)
Member
Post count: 23064

You need to set a different WinComboBox for each cell of this column.  You can do this at the AddingDataRow event, instead of setting it on the column at form load.

e.g.:

private void Form1_Load( object sender, EventArgs e )

{

    gridControl1.AddingDataRow +=

new AddingDataRowEventHandler( gridControl1_AddingDataRow );

}

private void gridControl1_AddingDataRow( object sender, AddingDataRowEventArgs e )

{

    //This sets a different editor to each cell, instead of using the same one for every cell when you set it on the column 

    e.DataRow.Cells[ “ComboColumn” ].CellEditorManager = new ComboBoxEditor();

}

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