
Setting column widths in Listview control
Quote:
>Hi,
>I am using a listview box in my project to display data in the report
>format. All the columns need to be set at different widths as is
>possible with the grid control. How do I do this with the listview
>control, like you do with the colwidth property of the grid?
>Any help appreciated!
>Chris
Here's how I did it. Example: set column 6 to a quarter of the total
width of the entire listview (named lstvXfrs):
lstvXfrs.ColumnHeaders(6).Width = (lstvXfrs.Width / 4)
of course you can set it to any valid number you'd like.
- Mike