We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GridDataBoundGrid combobox events

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? Thanks!

1 Reply

AD Administrator Syncfusion Team November 6, 2003 07:23 PM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon