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

Grid Group Cell Changed Event

Hi All,

I want to capture the Cell Changed OR Click event for the GGC.

Let's say there are three columns and I want edit data of only third column, So if i click inside 3rd cell OR changes any data, my save button on the form should get enabled.

Can you plz tell us which is the event and method ?

I have tried with TableControlCurrentCellChanged Event but not getting expected result.

Thanks...


1 Reply

MC Mercy C Syncfusion Team March 27, 2012 12:50 PM UTC

Hi Rohit,

Thanks for your interest in Syncfusion products.

To enable the button while clicking or changing the cell data, please make use of "TableControlCurrentCellStartEditing" event.
Again, to disable the button, when the current cell position is changed make use of "TableControlCurrentCellMoved" event.

void gridGroupingControl1_TableControlCurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellMovedEventArgs e)
{
this.button1.Enabled = true;
this.button1.BackColor = Color.LightGray;
}

void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCancelEventArgs e)
{
this.button1.Enabled = true;
this.button1.BackColor = Color.LightGreen;
}

Please refer to the sample in the following link
http://www.syncfusion.com/downloads/Support/DirectTrac/92519/WindowsFormsApplication73-2065069360.zip

Please let me know if you have any concerns.

Regards,
Mercy.C


Loader.
Live Chat Icon For mobile
Up arrow icon