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

Text doesn''t get saved into CellValue

Hi,
I have a grid with dropdown for each cell.
My problem is, when I select the value from the Dropdown and than try to read the CellValue programatically, it still shows me the CellValue = "".
But if I move off of the cell to another cell, and than read the CellValue from previous cell, it works fine.
Could you please let me know how to work this around?
(it's urgent)
thanks
Deepak


1 Reply

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


Loader.
Live Chat Icon For mobile
Up arrow icon