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

get the value of a cell that contains a combobox

hi to all, i have a cell that contains a combobox filled with a dataset of countries. on CurrentCellChanged event (when i choose a country) i need to get the value and display member of the element chosen by the user in the combobox does anyone has any ideas ? best regards and thanks in advance fady

1 Reply

AD Administrator Syncfusion Team April 11, 2006 09:40 AM UTC

Hi Fady, You can get the display member and value member of the combobox using ControlValue and ControlText property in the CurrentCell.Renderer Code Snippet: private void gridDataBoundGrid2_CurrentCellChanged(object sender, System.EventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid2.CurrentCell; Console.WriteLine("Display Member : " + cc.Renderer.ControlValue + "Value Member : " + cc.Renderer.ControlText); } Best regards, Madhan

Loader.
Live Chat Icon For mobile
Up arrow icon