Showing posts with label Column. Show all posts
Showing posts with label Column. Show all posts

Saturday, August 29, 2009

Formatting the GridView Column Header in Listview

Hi All,

Please find below the code to set the background color of a GridviewColumnHeader inside a Listview. I will add more to it ;)



Code to set the font size of a GridviewColumnHeader :



Thanks,
Vikas

Tuesday, June 30, 2009

WPF : Hide Headers from a GridviewColumn

Hi,

I know, this is simple but I wasted a bunch of my valuable time in finding a solution while developing my first application in WPF. Include the following line in your < listview> block to get rid of headers in your gridview column.

< ListView.Resources>
< Style x:Key="CustomHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
< Setter Property="Visibility" Value="Collapsed" />
< /Style>
< /ListView.Resources>

Thanks,
Vikas