Hi I am using WPF and I am trying to merge datagrid column headers.

the columns on the datagrid is also autogenerated.

What is the best way to accomplish this?

here is a simple example of what I want to achieve.
http://www.codeproject.com/KB/webfor...r/Datagrid.JPG