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.
Unfortunately, activation email could not send to your email. Please try again.

GridDataBoundGrid combobox events

Thread ID:

Created:

Updated:

Platform:

Replies:

8467 Nov 6,2003 02:18 PM Nov 6,2003 02:23 PM Windows Forms 1
loading
Tags: GridControl
Paul Laudeman
Asked On November 6, 2003 02:18 PM

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!

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;