CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    651

    DataGridView: Merge Header Columns

    I want to merge a header cell in my DataGridView and add a second header row, like you can do in Excel. Is there an easy way to do it?

    Like this:

    Code:
    -----------------------------------------------
    | Column1 |        Column2-3        | Column4 |
    |         | SubColumn2 | SubColumn3 |         |
    -----------------------------------------------
    |         |            |            |         |
    -----------------------------------------------
    |         |            |            |         |
    -----------------------------------------------
    |         |            |            |         |
    -----------------------------------------------
    I'd rather be wakeboarding...

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: DataGridView: Merge Header Columns

    There's no Property for the DataGridView to achieve this, but, you could follow the advice given here :

    http://forums.msdn.microsoft.com/en-...-5d427c3762e2/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured