WPF 4: What happened to DataGridColumnHeader?
What happened to DataGridColumnHeader? It looks like it was droppe开发者_JAVA百科d when the DataGrid was moved into PresentationFramework.
DataGridColumnHeader
is under the System.Windows.Controls.Primitives
namespace in the PresentationFramework.dll
assembly.
Something like
<DataGrid ItemsSource="{Binding}">
<DataGrid.Columns>
<DataGridTextColumn Header="Column Name" Binding="{Binding Name, Mode=TwoWay}" />
</DataGrid.Columns>
</DataGrid>
精彩评论