问题
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