[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1846
  • Last Modified:

Auto-Fit ListView columns in VB.NET


How do you auto-fit columns in a ListView using VB.NET 2.0?

0
JRossi1
Asked:
JRossi1
1 Solution
 
nayernaguibCommented:
Use the AutoResize() method of the list columns as follows:

          myListView.Columns(someIndex).AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent)

_______________

  Nayer Naguib
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now