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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problems with GridDataBoundGrid MonthCalendar CellType

Thread ID:





70291 Dec 5,2007 03:17 PM UTC Dec 6,2007 08:03 AM UTC WinForms 2
Tags: GridControl
Alexander Schlicht
Asked On December 5, 2007 03:17 PM UTC


I have some Problems with the MonthCalendar CellTypes in a GridDataBoundGrid. In V5.2 it was posible to edit the value by typing a new date over keyboard and after leaving or pressing enter this value ist stored in the DataTable. In V6.1 only Values are saved by choosing it from the DropDown Calendar. When I type a Value by keybard an press Enter the Old value is stored. This phenomenon is also in the Syncfusion samples for CellTypes, what's happen?


haneefm [Syncfusion]
Replied On December 5, 2007 07:21 PM UTC

Hi Schlicht,

This can be solved by handling the CurrentCellEditingComplete event of the grid and accordingly set the currentcell value. The following is the code snippet.

void gridDataBoundGrid1_CurrentCellEditingComplete(object sender, EventArgs e)
GridDataBoundGrid _grid = sender as GridDataBoundGrid;
GridCurrentCell cc = _grid.CurrentCell;
if (cc.HasCurrentCell && cc.Renderer is GridDropDownMonthCalendarCellRenderer)
DateTime RendererDate;
if (DateTime.TryParse(cc.Renderer.ControlText, out RendererDate))
_grid.Model[cc.RowIndex, cc.ColIndex].CellValue = RendererDate;

Best regards,

Alexander Schlicht
Replied On December 6, 2007 08:03 AM UTC

Hi Haneef!

It works, thank you for your quick fix.



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

or the page will be automatically redirected to 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