2005 DataFormatString in Gridview?

Discussion in 'ASP .Net' started by Tina, Dec 30, 2005.

  1. Tina

    Tina Guest

    Putting {0:d} in the DataFormatString for a date field in a GridView doesn't
    work. That date still shows with 12:00:00 AM and all of that.
    T
     
    Tina, Dec 30, 2005
    #1
    1. Advertising

  2. turn off htmlencode property !

    "Tina" <> schreef in bericht
    news:...
    > Putting {0:d} in the DataFormatString for a date field in a GridView
    > doesn't work. That date still shows with 12:00:00 AM and all of that.
    > T
    >
     
    Edwin Knoppert, Dec 30, 2005
    #2
    1. Advertising

  3. Tina

    lildakes

    Joined:
    Mar 26, 2008
    Messages:
    1
    dateformatstring

    Use {0:d} in the dateformatstring part, but change Htmlencode to FALSE
    it should work

    dakes
     
    lildakes, Mar 26, 2008
    #3
    1. Advertising

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. Gerhard Pretorius

    August CTP DataFormatString in Gridview not working

    Gerhard Pretorius, Sep 6, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,705
    Louis
    Sep 22, 2005
  2. Gerhard Pretorius

    DataformatString in Gridview and Detalsview ignored

    Gerhard Pretorius, Sep 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    623
    Gerhard Pretorius
    Sep 8, 2005
  3. Jon

    Gridview and dataformatstring

    Jon, Nov 8, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    2,615
    =?Utf-8?B?Q3VydCBLb3BwYW5n?=
    Nov 9, 2005
  4. Hardy Wang
    Replies:
    1
    Views:
    5,612
    Hardy Wang
    Dec 12, 2005
  5. Amelyan
    Replies:
    4
    Views:
    6,605
    Amelyan
    Jan 9, 2006
Loading...

Share This Page