473,230 Members | 1,376 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,230 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 1600
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.