This is a migrated thread and some comments may be shown as answers.

Help Please: GridDateTimeColumn Milliseconds

1 Answer 424 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 02 Feb 2011, 05:52 PM
Good Morning,

I am binding a RadGrid GridDateTimeColumn to a DB2 datetime column that contains millisecond values. I need to use these millisecond values to be able to update/delete the proper rows from the DB2 table; however, it looks like the GridDateTimeColumn doesn't store the System.DataTime value all the way down to milliseconds. It looks like the value just stops at seconds. 

Am I correct that the RadGrid GridDateTimeColumn doesn't store date/time values down to the millisecond?

Thanks
Casey

EDIT***
I was able to change the DataFormatString to "{0:MM/dd/yyyy HH:mm:ss:ffffff}" and it worked!! 

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 07 Feb 2011, 12:19 PM
Hi Casey,

If you do not specify the DataFormatString property of the GridDateTimeColumn it uses:
  • "d" (Short date pattern. For example: 6/15/2009)  as a format specifier if the picker type is DatePicker
  • "t" (Short time pattern . For example: 1:45 PM) if the picker type is TimePicker
  • "G" (General date/time pattern . For example: 6/15/2009 1:45:30 PM) if the PickerType is not specified

More information you could find in the following article:
http://msdn.microsoft.com/en-us/library/az4se3k1.aspx

Best wishes,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Casey
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or