Home All Groups Group Topic Archive Search About

DataGridView: Column Header with 2 lines

Author
22 Sep 2006 7:41 PM
osmarjunior
I want to create columns in my DataGridView just like that:

______________________________________
|________________Taxes________________|
|_______Tax 1_______|______Tax 2______|
|       3,50       |      4,50       |
|       6,60       |      4,22       |


But how do I make column headers with 2 levels, and merge the first
row?

Thanks.

Author
23 Sep 2006 5:49 AM
Cor Ligthert [MVP]
Osman,

You can always try to set the DataGridView on a panel with some labels above
it, if you center that a little bit, than the place will in most situations
be right.

Cor

Show quoteHide quote
"osmarjunior" <osmarjun***@gmail.com> schreef in bericht
news:1158954104.371528.239720@i42g2000cwa.googlegroups.com...
>I want to create columns in my DataGridView just like that:
>
> ______________________________________
> |________________Taxes________________|
> |_______Tax 1_______|______Tax 2______|
> |       3,50       |      4,50       |
> |       6,60       |      4,22       |
>
>
> But how do I make column headers with 2 levels, and merge the first
> row?
>
> Thanks.
>

Bookmark and Share