datagrid: dynamic column header

Apr 30, 2009 at 10:42 AM

is there a way to do the following using xaml?

I have a datagrid with textbox columns and checkbox columns. Now I want to add a textbox in the textboxcolumn headers and a checkbox in the checkboxcolumn headers.

I solved this using code in the Loaded-Event, but as the additional controls are "lost" during some non grid specific actions I want to try it using xaml

Do you have any example for doing this?