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 Header

DataGridView Header

Scheduled Pinned Locked Moved Windows Forms
question
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.
  • K Offline
    K Offline
    Kit Fisto
    wrote on last edited by
    #1

    Hi all. I'm a noob and i have a question to you all. I want to present a datagridview with more then one Header Row and with the first column row merged like this: ----------------------------------------- |...............Week......................| -> Week ----------------------------------------- |..M..|..T..|..W..|..T..|..F..|..S..|..S..| -> Each Week Day ------------------------------------------ Is there a way to do that? I didn't want to use a comercial component ;P Thanks in advance.

    J 1 Reply Last reply
    0
    • K Kit Fisto

      Hi all. I'm a noob and i have a question to you all. I want to present a datagridview with more then one Header Row and with the first column row merged like this: ----------------------------------------- |...............Week......................| -> Week ----------------------------------------- |..M..|..T..|..W..|..T..|..F..|..S..|..S..| -> Each Week Day ------------------------------------------ Is there a way to do that? I didn't want to use a comercial component ;P Thanks in advance.

      J Offline
      J Offline
      John_Adams
      wrote on last edited by
      #2

      Hi, Unfortunately DataGridView does not support cell merging. You can custom paint content across cells, but it will require a lot of work and custom coding to produce merged editable cells. You may take a look at the following forum postings: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=260387&SiteID=1[^] http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=783151&SiteID=1[^] Hope this helps :).

      Regards, John Adams ComponentOne LLC

      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