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 : saving values in grid on lost focus

Thread ID:

Created:

Updated:

Platform:

Replies:

39483 Jan 10,2006 05:36 AM UTC Jan 17,2006 05:23 AM UTC WinForms 5
loading
Tags: Grouping
Anupama
Asked On January 10, 2006 05:36 AM UTC

I have an editable Grid Grouping control. My problem is that whenever the user changes the value of a row of cells and Clicks a ''Save'' button the last cell value does not get saved, unless the user clicks somewhere else on the grid. Basically I need the grid to save latest changes as soon as focus is lost on the grid. How can I do this?

stanleyj [Syncfusion]
Replied On January 10, 2006 02:09 PM UTC

Hi Anupama, Please ensure that CausesValidation of that Save button is set true. Best regards, Stanley

Anupama
Replied On January 12, 2006 05:38 AM UTC

The Save button is a normal Windows Forms button and by default CausesValidation for it is set to true. This button is not part of the grid. A point to mention is that none of the celltypes in my grid are textbox. There are 3 columns in my grid with celltypes of "ComboBox", "MonthCalendar" and "RichText". I dont know this has anything to do with this. >Hi Anupama, > >Please ensure that CausesValidation of that Save button is set true. > >Best regards, >Stanley

stanleyj [Syncfusion]
Replied On January 12, 2006 01:23 PM UTC

Hi Anupama, Yes, you are right by default CausesValidation is set to true. This behavior can be seen only when that is set to false. Best regards, Stanley

Anupama
Replied On January 13, 2006 04:10 AM UTC

So can you think of a way to save values of the last changed cell when user clicks a place outside the grid? This must be a fairly common problem but I couldnt seem to find a related thread on this forum. Please help! >Hi Anupama, > >Yes, you are right by default CausesValidation is set to true. This behavior can be seen only when that is set to false. > >Best regards, >Stanley

stanleyj [Syncfusion]
Replied On January 17, 2006 05:23 AM UTC

Hi Anupama, This is not a common problem and normally this shouldn''t happen. I think Table.EndEdit might help. this.gridGroupingControl1.Table.EndEdit(); Best Regards, Stanley

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

;