Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Listview Column Width

Status
Not open for further replies.

dstrange

Programmer
Nov 15, 2006
87
CA
Is there a way to set the width of a single column in a listview at runtime to a different size? I want a specific column width to change from 900 to 0 depending if the user has selected a checkbox or not. Thanks in advance.
 
listView1.ColumnHeaders.Item(colnumber).Width = 0

This also worked for me.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top