How to Format date/time

I am using a grid grouping control and I want to format my date/time columns with the same format I used on the regular grid control: gbc.StyleInfo.Format of MM/dd/yyyy hh:mm tt How do I do this within the grouping grid?

2 Replies

AD Administrator Syncfusion Team July 23, 2004 02:46 PM UTC

Linda, try the following code: this.groupingGrid1.TableDescriptor.Columns["Column Name"].Appearance.AnyRecordFieldCell.Format = "MM/dd/yyyy hh:mm tt"; Stefan


LI Linda July 23, 2004 03:53 PM UTC

That worked great -- thanks Stefan.

Loader.
Up arrow icon