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.

URGENT - gridGroupingCtrl - How to get Cell Value Changed Event

Thread ID:

Created:

Updated:

Platform:

Replies:

69375 Oct 25,2007 12:19 PM Oct 29,2007 07:03 PM Windows Forms 1
loading
Tags: Grouping
Kiran Guptha
Asked On October 25, 2007 12:19 PM

Hi,
I followed your example DropDownGrid_2005 to embed the Combobox in GridGroupingControl.
When I change the value of Combobox it reflects on the Grid. Which Event I have to handle to know that the cell value has changed.
It is very urgent. Pls reply ASAP

Thanks
-Kiran

J.Nagarajan [Syncfusion]
Replied On October 29, 2007 07:03 PM

Hi Kiran,

Whenever you make any changes to the currentcell and before you move to any other cell the validation events for the currentcell is triggered followed by the TableControlCurrentCellAcceptedChanges event. If you want to be notified of the changed cell after you close the dropdown of the combobox, then you can manually valiadate the cell in the TableControlCurrentCellCloseDropDown event. Please try the below code.

[C#]

void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
if (e.Inner.PopupCloseType == PopupCloseType.Done && cc.IsModified)
cc.ConfirmChanges(true);
}

void gridGroupingControl1_TableControlCurrentCellAcceptedChanges(object sender, GridTableControlCancelEventArgs e)
{
Console.WriteLine("CurrentCell Changed Text: {0}", e.TableControl.CurrentCell.Renderer.ControlText);
}

Let me know if you have any questions.

Regards,
Nagaraj


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.

;