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

GridDataBoundGrid combobox events

Thread ID:





8467 Nov 6,2003 07:18 PM UTC Nov 6,2003 07:23 PM UTC WinForms 1
Tags: GridControl
Paul Laudeman
Asked On November 6, 2003 07:18 PM UTC

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 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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon