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

GGC MonthCalendar format

Thread ID:

Created:

Updated:

Platform:

Replies:

59657 Apr 19,2007 11:14 AM UTC Apr 23,2007 10:59 PM UTC WinForms 3
loading
Tags: GridControl
Ryan Hardoon
Asked On April 19, 2007 11:14 AM UTC

Hi,

The ggc "MonthCalendar"-CellType presents its value, by default, in "dd:MM:yy" format and I wish it to display "yyyy:MM:dd" format.

What's the propper way of doing that ?
(designer prop. grid / programatically)


Thanks in advance.

haneefm [Syncfusion]
Replied On April 19, 2007 03:40 PM UTC

Hi Ryan,

You can try this code snippet to set the format of the datetime column in a grid.

//For main table.
this.grid.TableDescriptor.Columns["ColumnName"].Appearance.AnyRecordFieldCell.Format = "yyyy:MM:dd";
//For nested table.
this.grid.GetTableDescriptor("childTableName").Columns["ColumnName"].Appearance.AnyRecordFieldCell.Format = "yyyy:MM:dd";

Best regards,
Haneef

Ryan Hardoon
Replied On April 22, 2007 12:55 PM UTC

Hi Haneef,

I tried the following formats (both in the designer and on Load):
"yyyyMMdd"
"yyyy:MM:dd"
"yyyy/MM/dd"
"yyyy-MM-dd"

None had any effect.



>Hi Ryan,

You can try this code snippet to set the format of the datetime column in a grid.

//For main table.
this.grid.TableDescriptor.Columns["ColumnName"].Appearance.AnyRecordFieldCell.Format = "yyyy:MM:dd";
//For nested table.
this.grid.GetTableDescriptor("childTableName").Columns["ColumnName"].Appearance.AnyRecordFieldCell.Format = "yyyy:MM:dd";

Best regards,
Haneef

haneefm [Syncfusion]
Replied On April 23, 2007 10:59 PM UTC

Hi Ryan,

Please try the attached sample and let me know if this helps.
GroupingDateTime.zip

Best regards,
Haneef

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

;