Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

Resize Columns sizes listview not working.

$
0
0
Hi I have a command button that I press and loads data into list view, but I am trying to resize the Columns cos some of the text is not showing I used this at the end of the code

Code:

        'Fix col sizes.
        LstItems.Columns(1).Width = -2
        LstItems.Columns(2).Width = -2

I even tried with -1 and it not working.

funny thing is if I put the code in some other command button then click it re-sizes. I don;t under stand why i won't work at the end of my code in the first command button.

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>