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

obtaining cell value at runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

53421 Dec 13,2006 02:24 PM UTC Dec 14,2006 06:18 AM UTC WinForms 1
loading
Tags: Grouping
Pawan Adur
Asked On December 13, 2006 02:24 PM UTC

HI ,
i take cell value from drop down list but i need to change some other value based on this cell value.
i used celleditcomplete, closedropdown, currentcellchanged , record changed but none of these events give me the current selected value in from drop down, instead they return null.
i think the event is getting fired but the current selcted cell doesnt contain the selected drop down value.

Administrator [Syncfusion]
Replied On December 14, 2006 06:18 AM UTC

Hi Pawan,

This can be achieved by handling the TableControlCurrentCellCloseDropDown event. In the event, you can retrieve the selected dropdown value by using the renderer of the corresponding cell type. The following is the code snippet

+++++++++++++++++++
// TableControlCurrentCellCloseDropDown
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
Console.WriteLine(cr.ListBoxPart.SelectedValue);
+++++++++++++++++++

Sample: GGC_DropDown3.zip

Kindly let us know if you need any further assistance.
Have a nice day.

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

;