Style in HeaderColumn in Datagrid

南笙酒味 提交于 2019-12-11 23:19:32

问题


Please see this following image of my datagird.

Now want a border in headerColumn. I have tried columnheader style but it did not work for me. I want following style of header of datagrid.Please see the following image.

How can i achieve this style in datagird. Thanks

回答1:


You have to change the DataGrid template, not columnheader. In the default DataGrid template there is:

<sdk:DataGridColumnHeadersPresenter x:Name="ColumnHeadersPresenter" Grid.Column="1"/>

I think you have to edit over there.



来源:https://stackoverflow.com/questions/12420886/style-in-headercolumn-in-datagrid

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