HA
haneefm
Syncfusion Team
July 23, 2007 03:18 PM UTC
Hi Raj,
Generally you would use the CurrentCellChanged event to catch when the selected index of a combobox changed. But if you want to get at the SelectedIndexChanged event you can. Note that there is only one combobox and it is shared among all cells that have a ComboBox CellType so you will need to take this into consideration as you catch this event. You catch add code like this in Form.Load to subscribe to the event for all cells.
GridComboBoxCellRenderer cc = this.grid.CellRenderers["ComboBox"] as GridComboBoxCellRenderer;
cc.ListBoxPart.SelectedIndexChanged += new EventHandler(combo_SelectIndexChanged);
To get the new displaymember, try
cc.Renderer.ControlText
To get the new ValueMember, try
cc.Renderer.ControlValue
Best regards,
Haneef