I have a combobox control as one of the columns in my GridDataBoundGrid. When a user selects a value out of the combobox, I'd like to catch this event and do some further processing based on the selected value before the user moves to the next cell or row.
What event should I try and catch and how I can get at the selected value?
ADAdministrator Syncfusion Team November 6, 2003 02:23 PM
Try the CurrentCellChanged event.
GridCurrentCell cc = this.grid.CurrentCell;
if(cc.Renderer is GridComboBoxCellRenderer)
string currentValue = cc.Renderer.ControlText;
You can also use cc.RowIndex and cc.ColIndex to test where you are in the grid if you need that.
If you are allowing typing, then you would need to handle something like CurrentCellvalidatng instead as CurrentCellChanged will be hit for every key.