WPF 4: What happened to DataGridColumnHeader?

无人久伴 提交于 2019-12-23 09:15:05

问题


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


回答1:


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




回答2:


Something like

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


来源:https://stackoverflow.com/questions/2481946/wpf-4-what-happened-to-datagridcolumnheader

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!