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

MonthCalender CellValueType

One cell type is set as MonthCalendar as : e.Style.CellType = "MonthCalendar"; e.Style.CellValueType = typeof(DateTime); e.Style.Format = "M/d/yyyy"; Why the text in the cell is shown as "12/31/2005 12:00:00 AM", instead of "12/31/2005". By the way, it''s possible for the user to enter the date? Thanks.

4 Replies

AD Administrator Syncfusion Team January 5, 2006 01:00 PM UTC

Hi Hui, Your code works fine. If values are set for the MonthCalender cell, try setting it in style.Text for grid control to see if that helps. It is possible for the user to enter dates in those cells. Regards, Calvin


HZ Hui Zhong January 5, 2006 06:13 PM UTC

How to set the style.Text to avoid the cellvalue is shown as short date format instead of "12/31/2005 12:00:00 AM", and how to make it possible for the user to enter the dates in those cells? Thanks. >Hi Hui, > >Your code works fine. If values are set for the MonthCalender cell, try setting it in style.Text for grid control to see if that helps. It is possible for the user to enter dates in those cells. > >Regards, >Calvin


AD Administrator Syncfusion Team January 6, 2006 05:05 AM UTC

Hi Hui, Here is a sample for grid control which sets the value in style.Text and allows the user to enter dates. Regards, Calvin.

Forum_39345.zip


HZ Hui Zhong January 6, 2006 04:47 PM UTC

Thanks. >Hi Hui, > > >Here is a sample for grid control which sets the value in style.Text and allows the user to enter dates. > > >Regards, > >Calvin.

Forum_39345.zip

Loader.
Live Chat Icon For mobile
Up arrow icon