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. Windows Forms
  4. How to display text on the Datagridview Header?

How to display text on the Datagridview Header?

Scheduled Pinned Locked Moved Windows Forms
tutorialquestion
5 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.
  • S Offline
    S Offline
    Soma Shekhar
    wrote on last edited by
    #1

    Hi, I created a Datagridview which holds the 64 bit data with different names, I want to display the Starting bit information on the Row header and the 0th column the name, and the value in the 1st column, How I can add the Header text?

    SomaShekhar

    D 1 Reply Last reply
    0
    • S Soma Shekhar

      Hi, I created a Datagridview which holds the 64 bit data with different names, I want to display the Starting bit information on the Row header and the 0th column the name, and the value in the 1st column, How I can add the Header text?

      SomaShekhar

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

      I have no idea what you're trying to do, but the DGV has a Columns collection that holds DataGridViewColumn objects, each of which has a HeaderText property where you set the text of the column header.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        I have no idea what you're trying to do, but the DGV has a Columns collection that holds DataGridViewColumn objects, each of which has a HeaderText property where you set the text of the column header.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        S Offline
        S Offline
        Soma Shekhar
        wrote on last edited by
        #3

        Hi Dave, My intention is to display the start index of the bit field at left side of the datagridview (I think it was called as the DataGgridviewRow header), I have tried setting the row header text but I couldn't acheived the purpose. :(

        SomaShekhar

        D 1 Reply Last reply
        0
        • S Soma Shekhar

          Hi Dave, My intention is to display the start index of the bit field at left side of the datagridview (I think it was called as the DataGgridviewRow header), I have tried setting the row header text but I couldn't acheived the purpose. :(

          SomaShekhar

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

          You voted me down because my suggestion didn't help at all, even when I said what you described didn't make any sense and I took a guess at what you were trying to do?? See ya...

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          P 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You voted me down because my suggestion didn't help at all, even when I said what you described didn't make any sense and I took a guess at what you were trying to do?? See ya...

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            Hmmm, I think I'll pass helping him out.

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

            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