Solution
For Each c As ColumnHeader In MyListView.Columns
c.Width = -2
Next
I just figured out what I was doing wrong! Width = -2 in my code before looping through the data and filling up my listview! (stupid of me)
Best regards,
Christophe
Hi Forum,
I'm just starting with vb.net and I'm facing a problem that would probably be relatively easy to fix for experienced developers like you.
I'm using the next class to fill my listview
Imports System.Data.SqlClient
Public Class ListViewData
Public Sub FillListView(ByRef...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.