How to hide columnheader in listview

singh

New member
Joined
Aug 30, 2005
Messages
4
Programming Experience
Beginner
hi, all
i am using "details" as view in listview. But i can't find an option to hide columnheader. does anyone know how to do that.

cheers
singh
 
I'm still not sure about the question but let me guess for a while

ok you can do next

Dim lvcol As ColumnHeader

For Each lvcol Inlistview1.Columns
ColumnHeader1.Text = String.Empty 'or "" if you are habitual to use double quotes

ColumnHeader1.Width = 0 'this will make a columnheader1 to be hiden even if certain column has data within

Next


Regards ;)
 
sorry for confusion.

i have tried to do that, but still can't make the whole columnheader invisible. i remember in vb6, there's a property in listview called ".HideColumnHeaders= true/false". is it possible to do that in vb.net as well.

cheers
 
as much i know it is not available in vb.NET
nene.gif


but the code i sent you above should do the trick ... take a look at the attached project

Regards ;)
 

Attachments

  • HideColumns.zip
    24.6 KB · Views: 32
Back
Top