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. row headers

row headers

Scheduled Pinned Locked Moved C#
question
7 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.
  • U Offline
    U Offline
    User 589870
    wrote on last edited by
    #1

    hi, can i add some text or control to row headers and hw to do it?

    D A 2 Replies Last reply
    0
    • U User 589870

      hi, can i add some text or control to row headers and hw to do it?

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Which control's row header are you speaking of?

      U 1 Reply Last reply
      0
      • D dan sh

        Which control's row header are you speaking of?

        U Offline
        U Offline
        User 589870
        wrote on last edited by
        #3

        row headers of datagridview?specifically row header of first row i.e header row?

        D 1 Reply Last reply
        0
        • U User 589870

          row headers of datagridview?specifically row header of first row i.e header row?

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          You can set the text like this:

          dataGridView.Rows[rowIndex].HeaderCell.Value = "Some value";

          U 1 Reply Last reply
          0
          • D dan sh

            You can set the text like this:

            dataGridView.Rows[rowIndex].HeaderCell.Value = "Some value";

            U Offline
            U Offline
            User 589870
            wrote on last edited by
            #5

            i want to add a control programatically to topleftheadercell but i m unable to do so.any idea?

            D 1 Reply Last reply
            0
            • U User 589870

              i want to add a control programatically to topleftheadercell but i m unable to do so.any idea?

              D Offline
              D Offline
              dan sh
              wrote on last edited by
              #6

              AFAIK, there is no direct way of adding controls to that cell. You will have to Paint a control yourself within the region of that cell.

              1 Reply Last reply
              0
              • U User 589870

                hi, can i add some text or control to row headers and hw to do it?

                A Offline
                A Offline
                arun_pk
                wrote on last edited by
                #7

                http://msdn.microsoft.com/en-us/library/7tas5c80.aspx[^][^][^] go through this

                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