Hi there,
You can set the BoundColumn's DataFormatString property to an expression that changes the date format. You may also need to set HtmlEncode="False" on the column:
<asp:BoundField DataField="DateOfBirth" HeaderText="Date of Birth" DataFormatString="{0:d}" HtmlEncode="False" />
http://msdn.microsoft.com/en-us/libr...matstring.aspx
http://msdn.microsoft.com/en-us/library/26etazsy.aspx
(Both links are experiencing problems at the moment).
If you don't have BoundColumn controls, and AutoGenerateColumns set to True instead, you need to alter the GridView to support columns first using its Smart Task panel.
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.