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. column headers not showing

column headers not showing

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • Z Offline
    Z Offline
    Zap Man
    wrote on last edited by
    #1

    I have a datagridview with for columns. the datagridview is dinamically added. the 4th column is needed for an cellClick event so I have to have it. But I do not want to display it so I set the Visible property for that column to false. and it does not show. Cool right? Except in the process of making this column not visible the header text for all the columns dis appear; I could set the with of the DataGrid to chop off the last column so its still there but no one can see it. and this is probably what im going to do but was wondering if anyone had this problem or a resolution to this. Mike

    Z 1 Reply Last reply
    0
    • Z Zap Man

      I have a datagridview with for columns. the datagridview is dinamically added. the 4th column is needed for an cellClick event so I have to have it. But I do not want to display it so I set the Visible property for that column to false. and it does not show. Cool right? Except in the process of making this column not visible the header text for all the columns dis appear; I could set the with of the DataGrid to chop off the last column so its still there but no one can see it. and this is probably what im going to do but was wondering if anyone had this problem or a resolution to this. Mike

      Z Offline
      Z Offline
      Zap Man
      wrote on last edited by
      #2

      ok Never mind. The headerText was not showing because I did not set the foreColor in the column that was not to be visible.

      R 1 Reply Last reply
      0
      • Z Zap Man

        ok Never mind. The headerText was not showing because I did not set the foreColor in the column that was not to be visible.

        R Offline
        R Offline
        Ravi Sant
        wrote on last edited by
        #3

        Then, please mark your question as [solved]. if it is!

        ♫ 99 little bugs in the code, 99 bugs in the code We fix a bug, compile it again 101 little bugs in the code ♫

        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