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

Dataset update on lost focus

I have a field that has up/down arrows and my grid is grouped. If I expand a group, click the fields up/down arrow (ie. so the number changes from 0 to 1) then click a toolbar button that posts the grid back to a database, the change from 0 to 1 is not recognized (moreover, i notice that unless I click another cell after hitting the up/down arrow, the summary in the group caption row for this field doesn't update either)

Is there a way to force the update on Lost Focus?

Any ideas?


1 Reply

JJ Jisha Joy Syncfusion Team December 23, 2008 06:01 AM UTC

Hi DietzMJ,


Please try to handle TableControlCurrentCellAcceptedChanges event as shown in the below code and let me know if this helps.


void gridGroupingControl1_TableControlCurrentCellAcceptedChanges(object sender, GridTableControlCancelEventArgs e)
{
e.TableControl.Table.CurrentRecord.EndEdit();
e.TableControl.Table.EndEdit();
}

Thank you for using Syncfusion Products.

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon