Merging column headers

Oct 15, 2008 at 9:32 AM
Edited Oct 15, 2008 at 9:35 AM
Hi friends,
in winForms I've used the devexpress grid which enables Banded Columns.does the WPF DataGrid supports such feature ?
I need something like this:

Oct 19, 2008 at 3:17 PM
Edited Oct 19, 2008 at 3:19 PM
any suggestions for an elegant solution?

Oct 23, 2008 at 8:23 AM
Edited Oct 23, 2008 at 2:54 PM
hi again,
I still haven't found a solution for that - what I'm trying to do is to merge multiple cells in the column's header.
Maybe a more abstract view will help:

for example I have column header: Contact Number which has two sub columns named Home Phone and Work Phone under it)
Contact Number                    |
Home PhoneWork Phone  |

I can think of several solution,but none of them is simple enough,so maybe you can figure out simpler one.
One option is to make a new class that will contain several columns and will be styled to show the columns it contains.this seems to be complex solution since I will have to handle many cases including style,template and binding to this class by my own.
Another option can be to make a new TemplateColumn but this one might limit the functionality of what I'm trying to achieve.

I'd like to hear your opinion as well as another suggestions