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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

get the value of a cell that contains a combobox

Thread ID:

Created:

Updated:

Platform:

Replies:

42919 Apr 10,2006 12:38 PM UTC Apr 11,2006 09:40 AM UTC WinForms 1
loading
Tags: GridControl
Fady Sayegh
Asked On April 10, 2006 12:38 PM UTC

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

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

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.

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

;