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

Grouping Control

Thread ID:





70509 Dec 13,2007 07:19 PM UTC Dec 14,2007 09:58 AM UTC WinForms 1
Tags: Grouping
Asked On December 13, 2007 07:19 PM UTC

I have some code in the RecordValueChanged event handler wherein if somebody changes a cell value - it caculates the values for other cells in that grid row.
This happens when the user enters a value in the cell and hits enter. I now want to do the same thing where the user enters a value in the cell and instead of hitting enter - clicks on apply button on that form to save the changes.
Any help is appreciated.
Also, is there a way to trap the Shift+Tab key combination in the TableControlCurrentCellKeyDown event handler?


Administrator [Syncfusion]
Replied On December 14, 2007 09:58 AM UTC

Normally, pressing a button will cause validation to occur on the previously focussed control. But if the button is on a toolbar or if the button has its CausesValidation property set false, then the validation of the previous control does not occur, and that control does not know to save it pending changes. One way around this problem is to add a call to


at the beginning of your Apply button code. Here, 'this' refers to the Form holding the grid. This should work for any previous control, not just the GridGroupingControl.

If you do not want to force the validation using this.Validate(), then you could just try telling the grid to save its changes at the top of the Apply button code.

if (this.gridGroupingControl1.Table.CurrentRecord != null
&& this.gridGroupingControl1.Table.CurrentRecord.IsEditing)

Try using this code to catch shift+Tab.

void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
if (e.Inner.Shift && e.Inner.KeyCode == Keys.Tab)
this.Text = "Shift+Tab";


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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