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. dataGridView

dataGridView

Scheduled Pinned Locked Moved C#
questioncsharp
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.
  • T Offline
    T Offline
    t_nedelchev
    wrote on last edited by
    #1

    Hello everybody. In my C# project I use dataGridView. How can I set a row headers text? Thanks in advance.

    S K 2 Replies Last reply
    0
    • T t_nedelchev

      Hello everybody. In my C# project I use dataGridView. How can I set a row headers text? Thanks in advance.

      S Offline
      S Offline
      sam
      wrote on last edited by
      #2

      if you have made a proper tables style then for every column there is a property Header text other wise the name of column will appear as header for your view

      T 1 Reply Last reply
      0
      • S sam

        if you have made a proper tables style then for every column there is a property Header text other wise the name of column will appear as header for your view

        T Offline
        T Offline
        t_nedelchev
        wrote on last edited by
        #3

        Yes I know how to set column Headers text. But propertie RowHeadersVisible for my dataGridView is set to true. And I want to set for all rows header text.Is this possible?

        S 1 Reply Last reply
        0
        • T t_nedelchev

          Yes I know how to set column Headers text. But propertie RowHeadersVisible for my dataGridView is set to true. And I want to set for all rows header text.Is this possible?

          S Offline
          S Offline
          sam
          wrote on last edited by
          #4

          enlight me more

          1 Reply Last reply
          0
          • T t_nedelchev

            Hello everybody. In my C# project I use dataGridView. How can I set a row headers text? Thanks in advance.

            K Offline
            K Offline
            Keshav V Kamat 0
            wrote on last edited by
            #5

            Hi. The most easiest way to do it is the following. dataGridView1.Rows[0].HeaderCell.Value = "Something"; where dataGridView1 refers to the data grid name, and '0' refers to the first row. (the index). ENJOY!!!:) Keshav Kamat Siemens India

            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