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.

Grid Group Cell Changed Event

Thread ID:

Created:

Updated:

Platform:

Replies:

102993 Mar 21,2012 07:33 AM Mar 27,2012 08:50 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Rohit
Asked On March 21, 2012 07:33 AM

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...


Mercy C [Syncfusion]
Replied On March 27, 2012 08:50 AM

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


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.

;