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.

MonthCalender CellValueType

Thread ID:

Created:

Updated:

Platform:

Replies:

39345 Jan 4,2006 06:31 PM Jan 6,2006 11:47 AM Windows Forms 4
loading
Tags: GridControl
Hui Zhong
Asked On January 4, 2006 06:31 PM

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.

Administrator [Syncfusion]
Replied On January 5, 2006 08:00 AM

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

Hui Zhong
Replied On January 5, 2006 01:13 PM

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

Administrator [Syncfusion]
Replied On January 6, 2006 12:05 AM

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

Hui Zhong
Replied On January 6, 2006 11:47 AM

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

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.

;