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

obtaining cell value at runtime

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.

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon