August CTP DataFormatString in Gridview not working

Discussion in 'ASP .Net' started by Gerhard Pretorius, Sep 6, 2005.

  1. 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
     
    Gerhard Pretorius, Sep 6, 2005
    #1
    1. Advertisements

  2. This was confirmed by another machine where we installed August CTP..
    Anyone from Microsoft to confirm this? Please...

    Gerhard

    "Gerhard Pretorius" <> wrote in message
    news:...
    > 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
    >
    >
     
    Gerhard Pretorius, Sep 7, 2005
    #2
    1. Advertisements

  3. 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" <> wrote in message
    news:...
    > 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
    >
    >
     
    Gerhard Pretorius, Sep 7, 2005
    #3
  4. Gerhard Pretorius

    Louis Guest

    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/produ...edbackid=b00b3ec6-e8fa-4f4d-b1e9-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" <> wrote in message
    > news:...
    > > 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
    > >
    > >
     
    Louis, Sep 22, 2005
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hardy Wang
    Replies:
    1
    Views:
    5,819
    Hardy Wang
    Dec 12, 2005
  2. ThunderMusic
    Replies:
    4
    Views:
    4,934
    ThunderMusic
    Jan 27, 2006
  3. Alan Silver

    DataFormatString not working in GridView

    Alan Silver, Feb 20, 2006, in forum: ASP .Net
    Replies:
    12
    Views:
    5,939
    Chop Hofilena
    Mar 10, 2006
  4. Rob Roberts
    Replies:
    3
    Views:
    22,456
    Martin Arredondo
    Apr 13, 2007
  5. Replies:
    1
    Views:
    2,005
    Ken Cox [Microsoft MVP]
    Aug 24, 2006
  6. Laura Creighton

    pyweek is happening august 02 - august 09

    Laura Creighton, Aug 4, 2007, in forum: Python
    Replies:
    0
    Views:
    675
    Laura Creighton
    Aug 4, 2007
  7. Aaron

    DataFormatString on boundcolumn not working

    Aaron, Apr 15, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    408
    Michael Tkachev
    Apr 16, 2004
  8. AcaBrian

    GridView DataFormatString not formatting

    AcaBrian, Nov 5, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    229
    AcaBrian
    Dec 2, 2005
Loading...