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

Thread ID:

Created:

Updated:

Platform:

Replies:

39483 Jan 10,2006 12:36 AM Jan 17,2006 12:23 AM Windows Forms 5
loading
Tags: Grouping
Anupama
Asked On January 10, 2006 12:36 AM

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

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

Anupama
Replied On January 12, 2006 12:38 AM

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 08:23 AM

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 12, 2006 11:10 PM

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 12:23 AM

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.

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.

;