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.
Unfortunately, activation email could not send to your email. Please try again.

Text doesn''t get saved into CellValue

Thread ID:

Created:

Updated:

Platform:

Replies:

78907 Jan 9,2009 10:49 AM Jan 10,2009 01:33 AM Windows Forms 1
loading
Tags: GridControl
d p
Asked On January 9, 2009 10:49 AM

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


Rajadurai C [Syncfusion]
Replied On January 10, 2009 01:33 AM

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


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.

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.

;