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.

GGC Edit Mode

Thread ID:

Created:

Updated:

Platform:

Replies:

47176 Jul 28,2006 09:16 PM Jul 31,2006 09:15 AM Windows Forms 2
loading
Tags: Grouping
John Slater
Asked On July 28, 2006 09:16 PM

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 07:02 AM

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 09:15 AM

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.

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.

;