RC
Rajadurai C
Syncfusion Team
January 10, 2009 06:33 AM UTC
Hi Deepak,
Thanks for your interest in Syncfusion products.
You can retrieve the selected item in combobox by handling CurrentCellCloseDropDown event with the following code:
If it is GridControl,
this.gridControl1.CurrentCellCloseDropDown += new Syncfusion.Windows.Forms.PopupClosedEventHandler(gridControl1_CurrentCellCloseDropDown);
void gridControl1_CurrentCellCloseDropDown(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e)
{
GridCurrentCell cc = this.gridControl1.CurrentCell;
Console.WriteLine(cc.Renderer.ControlText.ToString());
}
If it is GridGroupingControl,
this.gridGroupingControl1.TableControlCurrentCellCloseDropDown += new GridTableControlPopupClosedEventHandler(gridGroupingControl1_TableControlCurrentCellCloseDropDown);
void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e)
{
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
Console.WriteLine(cc.Renderer.ControlText.ToString());
}
Regards,
Rajadurai