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. Windows Forms
  4. datagridview column header

datagridview column header

Scheduled Pinned Locked Moved Windows Forms
help
2 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.
  • T Offline
    T Offline
    tindo
    wrote on last edited by
    #1

    Hi, im a newbie, and i now the answer is probably very simple but i just cannot figure it out.:confused: I would like to get the datagridview to STOP taking the first row as the columnheader. i hav tried using DataGridView1.Columns(0).HeaderText but iv realised it doesnt stop taking the first row as the column header but it simply replaces the text in that column header but does not do what i want. Any help is much appreciated PS i am using vb

    D 1 Reply Last reply
    0
    • T tindo

      Hi, im a newbie, and i now the answer is probably very simple but i just cannot figure it out.:confused: I would like to get the datagridview to STOP taking the first row as the columnheader. i hav tried using DataGridView1.Columns(0).HeaderText but iv realised it doesnt stop taking the first row as the column header but it simply replaces the text in that column header but does not do what i want. Any help is much appreciated PS i am using vb

      D Offline
      D Offline
      Dave Sexton
      wrote on last edited by
      #2

      Do you mean that you don't want column headers? Have you tried setting the ColumnHeadersVisible property to false?

      But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
      Because programming is an art, not a science. Marc Clifton
      I gave up when I couldn't spell "egg". Justine Allen

      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