WPF 4: What happened to DataGridColumnHeader?

1.8k Views Asked by At

What happened to DataGridColumnHeader? It looks like it was dropped when the DataGrid was moved into PresentationFramework.

2

There are 2 best solutions below

8
On BEST ANSWER

DataGridColumnHeader is under the System.Windows.Controls.Primitives namespace in the PresentationFramework.dll assembly.

2
On

Something like

<DataGrid ItemsSource="{Binding}">
    <DataGrid.Columns>
        <DataGridTextColumn Header="Column Name" Binding="{Binding Name, Mode=TwoWay}" />
    </DataGrid.Columns>
</DataGrid>