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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MonthCalender CellValueType

Thread ID:

Created:

Updated:

Platform:

Replies:

39345 Jan 4,2006 11:31 PM UTC Jan 6,2006 04:47 PM UTC WinForms 4
loading
Tags: GridControl
Hui Zhong
Asked On January 4, 2006 11:31 PM UTC

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 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

Hui Zhong
Replied On 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

Administrator [Syncfusion]
Replied On 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

Hui Zhong
Replied On 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

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.

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

;