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.

GGC MonthCalendar format

Thread ID:

Created:

Updated:

Platform:

Replies:

59657 Apr 19,2007 07:14 AM Apr 23,2007 06:59 PM Windows Forms 3
loading
Tags: GridControl
Ryan Hardoon
Asked On April 19, 2007 07:14 AM

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 11:40 AM

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 08:55 AM

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 06:59 PM

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.

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.

;