Many thanks - that gets me most of the way there !.
"Siva M" wrote:
> <msdn
> url="
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscolumnheaderclasswidthtopic.asp">
>
> .... The ColumnHeader can be set to adjust at run time to the column contents
> or heading. To adjust the width of the longest item in the column, set the
> Width property to -1. To autosize to the width of the column heading, set
> the Width property to -2.
>
> </msdn>
>
> However, you have to do the above for every column by looping through the
> column collection.
>
> "ASGMikeG" <ASGMikeG@discussions.microsoft.com> wrote in message
> news:8E3CE19D-14DA-4FED-B9F4-D260A9009CDA@microsoft.com...
> Hi,
> Does anyone have a bit of code that will auto-size the columns on a ListView
> to fit the column headers AND data in those columns ?
> Regards
> Michael
>
>