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

GGC MonthCalendar format

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.

3 Replies

HA haneefm Syncfusion Team 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


RH Ryan Hardoon 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


HA haneefm Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon