Answered by:
Data Format string not working in ASP Gridview

Question
-
User-1011313748 posted
Does anyone know why my data format string don't work. I am using them in a gridview to format a date column. I have tried allot of different ones that people say work. Is there a property on the gridview that you ahve to set? Any help would be appreciated.DataFormatString
="{0:ddd}"Monday, March 19, 2007 7:12 PM
Answers
-
User-882084577 posted
Hi BasketballMike,
You should set HtmlEncode=false for the BoundField.
Hope this helps
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, March 19, 2007 10:48 PM
All replies
-
User-882084577 posted
Hi BasketballMike,
You should set HtmlEncode=false for the BoundField.
Hope this helps
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, March 19, 2007 10:48 PM -
User187056398 posted
You have to set HtmlEncode to false for the column.
Monday, March 19, 2007 10:50 PM -
User-1858676543 posted
Still it doesn't work. Any other solution to fix it out ?
Thursday, January 14, 2010 2:19 AM -
User555306248 posted
What is the error
Monday, January 25, 2010 6:53 AM -
User555306248 posted
Seeting HtmlEncode=false for the BoundField doesnt work for you, can you please post the error details.
Monday, February 8, 2010 7:08 AM