BoundField.HtmlEncode = false does not work

Discussion in 'ASP .Net Datagrid Control' started by Vyacheslav Lanovets, Aug 24, 2006.

  1. I have some HTML-tagged data in the DataSource (which is a DataTable with 1
    column).
    I added 1 BoundField to my GridView and disabled its HTMLEncode at design
    time.

    But GridView still does not want to show formatted text. It shows HTML tags
    instead :(
    What should I do to use GridView to show HTML formatting??
     
    Vyacheslav Lanovets, Aug 24, 2006
    #1
    1. Advertising

  2. Oh, I collected my thoughts and discovered that DataField property of the
    BoundField was not set to the name of the Column in the DataTable. :)

    "Vyacheslav Lanovets" <> wrote in
    message news:%...
    >
    > I have some HTML-tagged data in the DataSource (which is a DataTable with
    > 1 column).
    > I added 1 BoundField to my GridView and disabled its HTMLEncode at design
    > time.
    >
    > But GridView still does not want to show formatted text. It shows HTML
    > tags instead :(
    > What should I do to use GridView to show HTML formatting??
    >
    >
     
    Vyacheslav Lanovets, Aug 24, 2006
    #2
    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. M
    Replies:
    1
    Views:
    2,298
    Scott Allen
    Apr 7, 2005
  2. \A_Michigan_User\

    ValidateRequest=False HtmlEncode and The Best Method

    \A_Michigan_User\, Sep 5, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    952
    aamirghanchi
    Apr 1, 2010
  3. Jimmy J.
    Replies:
    1
    Views:
    406
    Mark Rae
    Jan 10, 2007
  4. jMehdi

    asp:BoundField and HtmlEncode

    jMehdi, Jul 5, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    563
    jMehdi
    Jul 6, 2007
  5. J055
    Replies:
    4
    Views:
    791
    Steven Cheng[MSFT]
    Jun 14, 2006
Loading...

Share This Page