473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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
3 1605
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jon | last post by:
Hi All, I have a column in my GridView with DataFormatString="{0:dd/MM/YYYY HH:mm}" HtmlEncode="False" Still the date formats as 2005-11-08T20:48:03 Any ideas? I'm using latest full release...
1
by: Hardy Wang | last post by:
Hi, I have a GridView control in my web form (ASP.NET 2.0) <asp:GridView ID="gvReport" runat="server" AllowSorting="True" AutoGenerateColumns="False" Width="100%"> <HeaderStyle...
12
by: Alan Silver | last post by:
Hello, I have a GridView control, and am unsuccessfully trying to format a column to show costs. The (simplified) code is as follows... <asp:GridView ID="grdCustomers"...
2
by: Rob Roberts | last post by:
I have a GridView that is bound to a collection of DateTimes (i.e. - Collection<DateTime>). I have a BoundField in the GridView, and its DataField is set to the DateTime's Date property, and the...
4
by: Eamonn | last post by:
Hi I am running Microsoft Visual Studio 2005 Team Edition Version 8.0.50727.42. I am adding columns to a GridView at runtime. When I add a BoundField that will contain DateTime data I want to...
1
by: ronrogell | last post by:
I would like to format a date field in a GridView that is defined as a varchar. Here is the bound field that I am trying to format. What am I doing wrong? Can this only be done for DateTime...
2
by: pgonzo | last post by:
In my initial tests with the GridView control, I cannot understand why the DataFormatString attribute has no affect on the column formatting. The 'creation_date' field is being reported as "3/30/02...
3
by: bsm | last post by:
I have created GridView and assign Datasource at RunTime. I need to format one Column which will have the following data. Start_date Want to Format as...
5
by: Tim Mackey | last post by:
hi, with a derived DataGrid control, i can override the CreateColumnSet method and scan into the DataGridColumns and set the DataFormatString, e.g. leave out the time part of a DateTime value. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.