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
close icon

Leave

Hi In GridControl I am changing the value of a cell and then using mouse I am closing the form, while closing if any changes asking for confirmation. If ''yes'' have to commit the changes. But since I am directly closing the form the grid Leave() event will be fired but it is happening only after ''Yes'' or ''No'' button click....How do I get the changed values?? cheers chandr

3 Replies

AD Administrator Syncfusion Team May 18, 2006 12:21 PM UTC

Hi Chandr, Please refer to the below forum link to see if that helps. http://www.syncfusion.com/Support/forums/message.aspx?MessageID=40795 Regards, Calvin.


RA Ravichandran May 18, 2006 12:57 PM UTC

Calvin, Nop. It didnt solve my problem. 1. In a form I am having GridControl. 2. Populated with Data. 3. clicking a cell and changing the value. 4. Without clicking anywhere direcly closing the form. 5. Now the form closing event being fired.. Asking ''Save Yes/No''. 6. If i press ''Yes''..how will i get the changed cell values... Because there is no event of grid being fired once close the form..Even validating didnt fire. Note: I set the CauseValidatiion of form to ''True'' only. Pls help... Cheers >Hi Chandr, > >Please refer to the below forum link to see if that helps. > >http://www.syncfusion.com/Support/forums/message.aspx?MessageID=40795 > >Regards, >Calvin. >


AD Administrator Syncfusion Team May 19, 2006 04:37 AM UTC

Hi Chandr, In the SaveCellInfo handler a flag can be set to the particular cell/row whose value has been changed and then at the end while closing the form the grid cells can be looped through and the changes can be moved back to the data table. Attached is a sample that demonstrates this. Regards, Calvin.

PopulationSample.zip

Loader.
Live Chat Icon For mobile
Up arrow icon