Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. html encode for datagridview

html encode for datagridview

Scheduled Pinned Locked Moved C#
html
11 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L leone

    Hi, i need a solution for my datagridview to recognise html codes. It is a winform datagridview, not an asp one.

    D Offline
    D Offline
    Dave Kreskowiak
    wrote on last edited by
    #2

    You're going to have to provide a bit more detail than that to get any kind of a useful answer. What do you mean by "recognize HTML code"??

    A guide to posting questions on CodeProject[^]
    Dave Kreskowiak

    L 3 Replies Last reply
    0
    • D Dave Kreskowiak

      You're going to have to provide a bit more detail than that to get any kind of a useful answer. What do you mean by "recognize HTML code"??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      L Offline
      L Offline
      leone
      wrote on last edited by
      #3

      For example this text is bold I want the text above to be seen as bold in my datagridview. Now it is seen as i typed.

      1 Reply Last reply
      0
      • D Dave Kreskowiak

        You're going to have to provide a bit more detail than that to get any kind of a useful answer. What do you mean by "recognize HTML code"??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        L Offline
        L Offline
        leone
        wrote on last edited by
        #4

        For example this text is bold

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          You're going to have to provide a bit more detail than that to get any kind of a useful answer. What do you mean by "recognize HTML code"??

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          L Offline
          L Offline
          leone
          wrote on last edited by
          #5

          Html tags are not being interpreted by datagridview. And tags appear in the datagridview.

          D 1 Reply Last reply
          0
          • L leone

            Hi, i need a solution for my datagridview to recognise html codes. It is a winform datagridview, not an asp one.

            M Offline
            M Offline
            madhubsu gmail com
            wrote on last edited by
            #6

            still now its not clear to me perfectly. Can you tell your requirement little bit more elaborately?

            L 2 Replies Last reply
            0
            • L leone

              Html tags are not being interpreted by datagridview. And tags appear in the datagridview.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #7

              Of course not, it's not an HTML control and doesn't understand HTML at all. Frankly, you'd have to build your own HTML rendering engine to get the DGV to support HTML tags. NOT EASY! Why do you want to do this? What's are the requirements driving this?

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak

              1 Reply Last reply
              0
              • M madhubsu gmail com

                still now its not clear to me perfectly. Can you tell your requirement little bit more elaborately?

                L Offline
                L Offline
                leone
                wrote on last edited by
                #8

                ok. the problem is that i stored some strings in html format just because i intended to use them only sending via mails. But now i need to use them in winform datagridview. If there is no solution, i will code my own html parser.

                1 Reply Last reply
                0
                • M madhubsu gmail com

                  still now its not clear to me perfectly. Can you tell your requirement little bit more elaborately?

                  L Offline
                  L Offline
                  leone
                  wrote on last edited by
                  #9

                  ok. the problem is that i have some data in my db. But they are in html format. So what control do you advise to show them in winform applications.(data depends on sql query.)

                  D M 2 Replies Last reply
                  0
                  • L leone

                    ok. the problem is that i have some data in my db. But they are in html format. So what control do you advise to show them in winform applications.(data depends on sql query.)

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #10

                    The only control that will render HTML is the WebBrowser control. You'll, of course, have to generate an HTML page with the data in it for the WebBrowser to render.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak

                    1 Reply Last reply
                    0
                    • L leone

                      ok. the problem is that i have some data in my db. But they are in html format. So what control do you advise to show them in winform applications.(data depends on sql query.)

                      M Offline
                      M Offline
                      madhubsu gmail com
                      wrote on last edited by
                      #11

                      But in windows you cannot render html code. So you have to convert that code into a simple string to show the data in windows.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups