fixed: asp.net gridview dataformatstring

A old problem was in VS 2005 and ASP.NET 2.0 that you have to set htmlencode=false to enable the dataformatstring.

Since SP1 of VS 2005 ( and ASP.NET 2.0 ) there is a new property in town HTMLEncodeFormatString which have default value false. So it is not necessary to set the value of the attribute.

<asp:BoundField DataField="RequiredDate" DataFormatString="{0:d}"

HeaderText="RequiredDate" SortExpression="RequiredDate" />

image

2 Comments

Comments have been disabled for this content.