I load a listview with several items and I would like to adapt the width of the listview to its content. Unfortunately, this doesn’t work.
I’m working on windows CE with the compact Framework .NET and I’ve already tried to set the width of the column to “-1” and “-2” as mentionned on MSDN. But no result so far…
Does anyone could help me on that…
According to the [MSDN page] on column widths:
For your purposes you should be setting the column width to -1. Note that you will have to do this after adding the items to the list.