Home Forums WinForms controls Xceed Grid for WinForms Grid Problems Reply To: Grid Problems

User (Old forums)
Post count: 23064

How do you set the Combo Box in the cell? The recommended way to do it is through the default constructor when you bind to the CellEditorManager, like this :

gridControl1.Columns[ 1 ].CellEditorManager = new ComboBoxEditor();
gridControl1.Columns[ 1 ].CellEditorManager.ActivatingControl += new CellEditorEventHandler(CellEditorManager_ActivatingControl);
gridControl1.Columns[ 1 ].CellEditorManager.DeactivatingControl += new CellEditorEventHandler(CellEditorManager_DeactivatingControl);

In the ActivatingControl event, you subscribe to the events that you want, and in the DeactivatingControl event, you unsubscribe to those same events.

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