Change listview column width at runtime
Dear All,
I am in a problem.
Actually in my project I am having a listview control. It has got 17 columns. Now based upon some criteria I want to change the column width of the 13th column only. Is that possible.
If yes then what is the code.
Please help me. Its urgent.
Thanks to all in advance
Re: Change listview column width at runtime
Yes its possible with a code like
Code:
listview1.SelectedItem.ListSubItems(12).Width = 100
Re: Change listview column width at runtime
The VB6 Listview (at least) doesn't have a Width property for Subitems. You can do this however.
listview1.ColumnHeaders(13).Width = 100