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

Column formatting

Hi,

Would like to know how can the column formatting be done in gcc?

Thanks

1 Reply

HA haneefm Syncfusion Team May 25, 2007 05:52 PM UTC

Hi Person,

You can try this code snippet to format the datetime column in GridGroupingControl.

this.gridGroupingControl1.TableDescriptor.Columns["DateColumn"].Appearance.AnyRecordFieldCell.CellType="TextBox";;
this.gridGroupingControl1.TableDescriptor.Columns["DateColumn"].Appearance.AnyRecordFieldCell.CellValueType=typeof(DateTime);
this.gridGroupingControl1.TableDescriptor.Columns["DateColumn"].Appearance.AnyRecordFieldCell.Format = "MM/dd/yy HH:mm:ss:fff";

Kindly let us know if this helps.

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon