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

Dataset update on lost focus

Thread ID:

Created:

Updated:

Platform:

Replies:

78660 Dec 22,2008 08:57 PM UTC Dec 23,2008 06:01 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 22, 2008 08:57 PM UTC

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?


Jisha Joy [Syncfusion]
Replied On 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


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

;