Tuesday, April 18, 2006

Does your date not get formatted in a GridView?

I've run into this problem twice now, so I guess I should write it down. If you are trying to format a BoundField in a GridView control to a specific date format, then you must turn that BoundField's HtmlEncode to false.



This is explained here:

http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=b00b3ec6-e8fa-4f4d-b1e9-39162abc847b

0 comments: