Welcome Guest Search | Active Topics | Sign In | Register

DateFormat in Grid Options
Sunil
Posted: Friday, January 18, 2008 2:12:51 AM
Rank: Member
Groups: Member

Joined: 1/6/2008
Posts: 13
Hi,

I want to display the Date and Time format in Grid Control. The format should be of type
"MM/DD/YYYY HH12:MI:SS AM". I am only able to see the Date part but not the time part.

Please let me know how to get both Date and Time format.

Regards,
Sunil R
eo_support
Posted: Friday, January 18, 2008 4:45:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,093
Have you tried setting the column's DataFormat?
Sunil
Posted: Sunday, January 20, 2008 10:01:02 PM
Rank: Member
Groups: Member

Joined: 1/6/2008
Posts: 13
I have set the DataFormat = "{0:dd/MM/yyyy hh:mm:ss tt}".
I tried the same with StaticColumn, DateTimeColumn and TextBoxColumn.
But i am not able to see the time part of it in any of the specified columns.
eo_support
Posted: Monday, January 21, 2008 5:28:24 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,093
Hi,

First check whether you have the latest version. The latest version supports time part but not "tt". Also check the width of the column. The default width is too short for you to see the time part. Resize it and you should be able to see it.

Thanks
Sunil
Posted: Monday, January 21, 2008 7:55:58 PM
Rank: Member
Groups: Member

Joined: 1/6/2008
Posts: 13
Hi,

I increased the width of the column and was able to see the time part now.
Can you let me know if you are planning to support the "AM" or "PM" time part.

Regards

eo_support
Posted: Tuesday, January 22, 2008 5:08:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,093
Yes. It will be ready with our next build.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.