Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug DataGrid entire column header (DataGridColumnHeadersPresenter) doesn't apply DataGrids' ColumnHeaderStyle!
3 replies. Latest Post by bitdisaster on October 17, 2008.
(0)
Andriy P...
Member
2 points
5 Posts
10-09-2008 5:33 AM |
<data:DataGrid ColumnHeaderStyle="{StaticResource DataGridColumnHeaderDefaultStyle}">
<
Note: DataGridColumnHeaderDefaultStyle is a DataGridColumnHeader default style, which was was taken from generic.xaml in System.Windows.Controls.Data.dll resources using Reflector.
Result: Column which we declared appears with applied style, but rest of the grid's column header appears with default style.
There is no way to change style of the header!
Yi-Lun L...
All-Star
25052 points
2,747 Posts
10-13-2008 2:05 AM |
Hello, can you post more markup? I tried this simple style and it worked fine for auto-generated columns as well as explicit defined ones:
10-13-2008 2:26 PM |
Here is a markup of DataGrid in Page.xaml:
</local:DataGrid>
And here is style for DataGrid Column Header :
Now, when i compile project and see my silverlight page, two columns, which i declared appears with new style and last column(which is used to fillup the remain space of DataGrid appears with default style).
bitdisaster
22 points
60 Posts
10-17-2008 6:08 PM |
I have the same problem
http://silverlight.net/forums/t/38706.aspx