Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a listview with several columns. I want to change the column header using code.
Please advise how to do it.

Thanks
Furqan
Posted

Just did it ..........

lvVendors.Columns(3).Text = "change"
 
Share this answer
 
To Change the Column Header Name of ListView Use Following Code
VB
ListViewName.Columns(ColumnIndex).Text="Name Of Column"

Note : Column Index is the Number of Column in the ListView
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900