467,145 Members | 1,021 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,145 developers. It's quick & easy.

August CTP DataFormatString in Gridview not working

Since installing the VS.NET August CTP the DataFormatString of the
BoundField in the Gridview does not work. Runtime v2.0.50727.

<asp:BoundField DataField="Event_Date" DataFormatString="{0:yyyy/MM/dd}"

It still shows the date as "2005/05/03 12:45 AM"

It worked in beta 2, don't knwo about July CTP, but August CTP is a problem

v2.0.50727

Anybody else know about this please... am I missing something...

Thks

Gerhard
Nov 19 '05 #1
  • viewed: 1445
Share:
3 Replies
This was confirmed by another machine where we installed August CTP..
Anyone from Microsoft to confirm this? Please...

Gerhard

"Gerhard Pretorius" <ge*****@comprehendit.co.za> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl...
Since installing the VS.NET August CTP the DataFormatString of the
BoundField in the Gridview does not work. Runtime v2.0.50727.

<asp:BoundField DataField="Event_Date" DataFormatString="{0:yyyy/MM/dd}"

It still shows the date as "2005/05/03 12:45 AM"

It worked in beta 2, don't knwo about July CTP, but August CTP is a
problem

v2.0.50727

Anybody else know about this please... am I missing something...

Thks

Gerhard

Nov 19 '05 #2
This also does not work in ASP.NET 2.0 August CTP in a GridView
DataFormatString="{0:#.#}"

Please, someone from Microsoft, can you confirm this?

Thanks

Gerhard

"Gerhard Pretorius" <ge*****@comprehendit.co.za> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl...
Since installing the VS.NET August CTP the DataFormatString of the
BoundField in the Gridview does not work. Runtime v2.0.50727.

<asp:BoundField DataField="Event_Date" DataFormatString="{0:yyyy/MM/dd}"

It still shows the date as "2005/05/03 12:45 AM"

It worked in beta 2, don't knwo about July CTP, but August CTP is a
problem

v2.0.50727

Anybody else know about this please... am I missing something...

Thks

Gerhard

Nov 19 '05 #3
I don't know if you have found the answer already, but it is by design
that the DataFormatString doesn't work with HtmlEncode=true (default).
So change HtmlEncode to False and it will work. See also
http://lab.msdn.microsoft.com/produc...9-39162abc847b

Louis

Gerhard Pretorius wrote:
This also does not work in ASP.NET 2.0 August CTP in a GridView
DataFormatString="{0:#.#}"

Please, someone from Microsoft, can you confirm this?

Thanks

Gerhard

"Gerhard Pretorius" <ge*****@comprehendit.co.za> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl...
Since installing the VS.NET August CTP the DataFormatString of the
BoundField in the Gridview does not work. Runtime v2.0.50727.

<asp:BoundField DataField="Event_Date" DataFormatString="{0:yyyy/MM/dd}"

It still shows the date as "2005/05/03 12:45 AM"

It worked in beta 2, don't knwo about July CTP, but August CTP is a
problem

v2.0.50727

Anybody else know about this please... am I missing something...

Thks

Gerhard


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jon | last post: by
1 post views Thread by Hardy Wang | last post: by
12 posts views Thread by Alan Silver | last post: by
1 post views Thread by ronrogell@quadax.com | last post: by
2 posts views Thread by pgonzo@improvementpath.com | last post: by
3 posts views Thread by bsm | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.