Home  separator  Controls  separator  ListView
Bookmark and Share Share...    Subscribe to this feed Feed   About Christian Moser  


WPF ListView Control

How to Hide the Header of a ListView

To hide the header of a ListView you can modify the Visibility property of the ColumnHeaderContainer by overriding the style locally.

<ListView>
    <ListView.View>
        <GridView>
            <GridView.ColumnHeaderContainerStyle>
               <Style>
                   <Setter Property="FrameworkElement.Visibility" Value="Collapsed"/>
               </Style>
            </GridView.ColumnHeaderContainerStyle>
            <GridView.Columns>
                ...
            </GridView.Columns>
        </GridView>
    </ListView.View>
</ListView>
 




Last modified: 2009-07-16 17:27:35
Copyright (c) by Christian Moser, 2011.

 Comments on this article

Show all comments
Mohamed Harris
Commented on 28.January 2010
Can you please any example with most of the properties used for listview.
mr.ha
Commented on 2.February 2010
It is easily to understand, but it is very short. I need it full function to learning.
Jaydev
Commented on 6.March 2010
to bind image in a listview
Rakesh
Commented on 24.March 2010
How to implement paging in ListView in WPF? Please let me know with an example.
Mallarapu..S...
Commented on 8.June 2010
Please show of outputs and give more examples controls
sri.mallarapu09@gmail.com
Commented on 11.June 2010
Nikunj
Commented on 27.July 2010
Hi, can you please more example to understand listview in detail
sd
Commented on 3.August 2010
sdfsdf
parth
Commented on 3.August 2010
hi
parth kamani
Commented on 3.August 2010
doin my msc it
parth kamani
Commented on 3.August 2010
atmiya
Mohssen
Commented on 29.August 2010
How Can I Made A Menu Like Your Menu(Left Side) in WPF?
I Write This But Don't Show SubMenu Of "aaaaaaa".
<Grid ShowGridLines="True">
<ItemsControl HorizontalAlignment="Left" VerticalAlignment="Center">
<MenuItem Header="aaaaaaa">
<MenuItem Header="ddddddddddd"></MenuItem>
<MenuItem Header="wwwwwwwwwww"></MenuItem>
</MenuItem>
<MenuItem Header="oooooooooooo"></MenuItem>
</ItemsControl>
</Grid>
Please Help Me.
Tank You.
Rajesh
Commented on 17.November 2010
Rajesh Mallela
Commented on 17.November 2010
Rajesh...
Commented on 17.November 2010
Hi i am Rajesh Mallela From Banglore i am enjoying ur tutoriol.its really help ful 4 me
ghfghfghfghfg
Commented on 9.February 2011
hello
Adit
Commented on 21.February 2011
Very Nice Tutorial
But Very Short
Expand it a little More
Me
Commented on 28.February 2011
wow.... great tutorial :/
Commented on 28.February 2011
ListView
Commented on 7.May 2011
how to creat a ListView ItemContainerStyle?
thanks
Commented on 13.May 2011
him
Commented on 19.May 2011
nice site
these...
Commented on 19.May 2011
these commands are trash
these...
Commented on 19.May 2011
these commands are trash
Commented on 9.September 2011
how to use multiple selected item of listview?

Name
E-Mail (optional)
Comment