GGC : saving values in grid on lost focus

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?

5 Replies

ST stanleyj Syncfusion Team January 10, 2006 02:09 PM UTC

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


AN Anupama 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


ST stanleyj Syncfusion Team 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


AN Anupama 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


ST stanleyj Syncfusion Team 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

Loader.
Up arrow icon