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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC Edit Mode

Thread ID:

Created:

Updated:

Platform:

Replies:

47176 Jul 29,2006 01:16 AM UTC Jul 31,2006 01:15 PM UTC WinForms 2
loading
Tags: Grouping
John Slater
Asked On July 29, 2006 01:16 AM UTC

I have GGC which has a checkbox in a column in the Parent table. After clicking on the checkbox I am updating a record unrelated to the GGC datasource. My issue is, the GGC indicates it is in edit mode unless i press return after clicking on the checkbox. I would like to get the GCC out of edit mode after clicking on it.
Thanks

Administrator [Syncfusion]
Replied On July 31, 2006 11:02 AM UTC

Hi JMS,

To resolve this issue, you need to handle the TableControlCurrentCellChanged event and call the Table.EndEdit() method. Here is a code snippet

private void gridGroupingControl1_TableControlCurrentCellChanged(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
GridCheckBoxCellRenderer cr = cc.Renderer as GridCheckBoxCellRenderer;
if( cr != null)
{
cc.EndEdit();
e.TableControl.Table.EndEdit();
}
}

Let me know if this helps.
Best Regards,
Haneef

Administrator [Syncfusion]
Replied On July 31, 2006 01:15 PM UTC

Thanks, Worked perfect.

>Hi JMS,

To resolve this issue, you need to handle the TableControlCurrentCellChanged event and call the Table.EndEdit() method. Here is a code snippet

private void gridGroupingControl1_TableControlCurrentCellChanged(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
GridCheckBoxCellRenderer cr = cc.Renderer as GridCheckBoxCellRenderer;
if( cr != null)
{
cc.EndEdit();
e.TableControl.Table.EndEdit();
}
}

Let me know if this helps.
Best Regards,
Haneef

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.

Warning Icon 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.Close Icon

;