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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateTimeCell and saving changes

Thread ID:





9801 Jan 12,2004 02:36 PM UTC Jan 12,2004 04:59 PM UTC WinForms 1
Tags: GridControl
Sean Greer
Asked On January 12, 2004 02:36 PM UTC

Essential Suite Visual Studio 2002 Hello, I''m using the DateTimeCell cell type (I think it was a sample) in order to edit time values in the grid. I''m having a problem getting it to persist changes to the datasource. If I edit the value and then go through my save routine (call EndCurrentEdit on the BindingContext the grid is bound to) the renderer''s OnSaveChanges is not called. If I press enter at the end of the edit, then OnSaveChanges is called. If I use the tab key, it is not called. I''ve also tried calling grid.CurrentCell.ConfirmChanges() and that doesn''t force OnSaveChanges to be called either (and the DateTimeCell is the current cell). I''ve tried calling grid.Binder.EndEdit() and grid.CurrentCell.EndEdit() and these don''t have an effect either. So, what must one do to ensure that the underlying datasource is updated? If I could find the sample that I lifted the cell type from I would try to fashion a repro, but I can''t. Thanks, Sean

Administrator [Syncfusion]
Replied On January 12, 2004 04:59 PM UTC

Check the code for your renderer class, and make sure CurrentCell.IsModified is set to true when a change is made. This is one flag that the renderer checks to see if OnSaveChanges should be called.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon