Saturday, September 15, 2012

Style in HeaderColumn in Datagrid

Style in HeaderColumn in Datagrid

Please see this following image of my datagird.

enter image description here 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. enter image description here How can i achieve this style in datagird. Thanks

Answers & Comments...

Answer: 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.

by : Linhareshttp://stackoverflow.com/users/1627692




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog