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.

Custom Date Control in GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

26393 Mar 22,2005 11:25 AM Mar 22,2005 03:02 PM Windows Forms 3
loading
Tags: GridControl
Kenneth Johnson
Asked On March 22, 2005 11:25 AM

I have created a custom DatePicker cell control based on the KB article http://www.syncfusion.com/Support/article.aspx?id=10435. The renderer has a handler for the ValueChanged event that sets CurrentCell.IsModified = true. I have also added a CurrentCellChanged event handler to the dialog. This event is not being fired when the date in the DatePicker is revised. Is there a call I need to add to my cell control to cause the CurrentCellChanged event to fire? Ken

Administrator [Syncfusion]
Replied On March 22, 2005 01:24 PM

Make sure renderer.NotifyCurrentCellChanging() is called before you save the change, and only save it if this call returns true (otherwise CurrentCellValidating failed...).

Kenneth Johnson
Replied On March 22, 2005 02:54 PM

When I add NotifyCurrentCellChanged() to OnSaveChanges() event, the grid''s CurrentCellChanged event is not fired until the user moves from the calendar cell to another. When I add it to the cell control''s ValueChanged event, CurrentCellChanged event fires correctly, but the value that is displayed in the cell is today''s date. The cell value is set in OnSaveChanges().

Administrator [Syncfusion]
Replied On March 22, 2005 03:02 PM

Try calling CurrentCell.ConfirmChanges when you want to immediately save the changes.

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.

;