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#
csharptutorialquestion
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 have a dataGridView with 12 Columns and 16 Rows. Propertie ColumnHeadersVisible is set true; How to enter value(text) into Cell between Row headers and Column headers (Cell in Topleft corner) in my dataGridView? Thanks in advance.

    J M 2 Replies Last reply
    0
    • T t_nedelchev

      Hello everybody. In my C# project I have a dataGridView with 12 Columns and 16 Rows. Propertie ColumnHeadersVisible is set true; How to enter value(text) into Cell between Row headers and Column headers (Cell in Topleft corner) in my dataGridView? Thanks in advance.

      J Offline
      J Offline
      joon vh
      wrote on last edited by
      #2

      I only found how to do it via code, not in a visual way, but it does the trick: dataGridView1.TopLeftHeaderCell.Value = "SomeTextHere"; Hope this helped! :omg:

      T 1 Reply Last reply
      0
      • T t_nedelchev

        Hello everybody. In my C# project I have a dataGridView with 12 Columns and 16 Rows. Propertie ColumnHeadersVisible is set true; How to enter value(text) into Cell between Row headers and Column headers (Cell in Topleft corner) in my dataGridView? Thanks in advance.

        M Offline
        M Offline
        Mairaaj Khan
        wrote on last edited by
        #3

        To enter value in the first cell of the first row:

        dataGridview.Rows[0].Cells[0].Value = "ABC";

        Regards joonyo's solution is correct. :-O Sorry! I didn't pay attention to the details. -- modified at 7:57 Monday 19th March, 2007

        ________________________________ Success is not something to wait for, its something to work for.

        1 Reply Last reply
        0
        • J joon vh

          I only found how to do it via code, not in a visual way, but it does the trick: dataGridView1.TopLeftHeaderCell.Value = "SomeTextHere"; Hope this helped! :omg:

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

          Thank you it works !!!

          J 1 Reply Last reply
          0
          • T t_nedelchev

            Thank you it works !!!

            J Offline
            J Offline
            joon vh
            wrote on last edited by
            #5

            My first solution! I am great. Do I get a prize now? :laugh:


            public object BufferOverFlow { __get { return BufferOverFlow; } __set { BufferOverFlow = value; } }

            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