DataGrid:: Single header for multiple columns

  • Thread starter Thread starter niv
  • Start date Start date
N

niv

Hello,
I have a grid that consists of 6 columns and I want 3 of
the columns to have a single header and the other 3
columns to have another header...

Is this possible? How?

Thanks,
niv
 
Niv,

With the current data grid, the only way you can do that is to custom
draw the data grid (or rather, draw it after you have drawn everything else,
in a Paint event handler, perhaps).

Hope this helps.
 
Or consider using a 3rd-party-developed grid control. I am currently working
with one that is quite reasonably priced, license comes with source code,
and it has the ability to group columns quite easily

-Rachel

Nicholas Paldino said:
Niv,

With the current data grid, the only way you can do that is to custom
draw the data grid (or rather, draw it after you have drawn everything else,
in a Paint event handler, perhaps).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

niv said:
Hello,
I have a grid that consists of 6 columns and I want 3 of
the columns to have a single header and the other 3
columns to have another header...

Is this possible? How?

Thanks,
niv
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top