datetime cell in datagrid

i am using syncfusion datagrid. I want to display datetime in one of the columns. The datetime is stored in database in "ToOADate"
ie datetime.ToOADate. "ToOADate" format stores datetime a different format that datetime stores. Is there any way in data grid which converts the "ToOADate" format to normal datetime.



1 Reply

HA haneefm Syncfusion Team January 24, 2008 03:54 PM UTC

Hi Prabhjeet,

You can try these codes

this.gridGroupingControl1.TableDescriptor.Columns["Col3"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.MonthCalendar;
this.gridGroupingControl1.TableDescriptor.Columns["Col3"].Appearance.AnyRecordFieldCell.Format = "G";

and let me know if this helps.

Best regards,
Haneef


Loader.
Up arrow icon