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. Data Grid View Row Header

Data Grid View Row Header

Scheduled Pinned Locked Moved C#
cssquestion
3 Posts 2 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.
  • H Offline
    H Offline
    half life
    wrote on last edited by
    #1

    HI, is there any way that i can put text at the Row Header? THNKS

    kobkob

    M 1 Reply Last reply
    0
    • H half life

      HI, is there any way that i can put text at the Row Header? THNKS

      kobkob

      M Offline
      M Offline
      Matthew Cuba
      wrote on last edited by
      #2

      Yes. Take a look at the DataGridView documentation - it is really quite easy once you get the idea that the header cell is similar to other cells in the datagridview. Suppose you wanted to set the text for row 0's row header... you could do this: dataGridView1.Rows[0].HeaderCell.Value = "Some String"; Good Luck!

      It isn't enough to do well in life. One must do good when and where one can. Otherwise, what's the point?

      H 1 Reply Last reply
      0
      • M Matthew Cuba

        Yes. Take a look at the DataGridView documentation - it is really quite easy once you get the idea that the header cell is similar to other cells in the datagridview. Suppose you wanted to set the text for row 0's row header... you could do this: dataGridView1.Rows[0].HeaderCell.Value = "Some String"; Good Luck!

        It isn't enough to do well in life. One must do good when and where one can. Otherwise, what's the point?

        H Offline
        H Offline
        half life
        wrote on last edited by
        #3

        THNKS :-)

        kobkob

        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