I have a listview control containing a number of columns.
When I populate the listview columns with data I want to size each column
according to the following rules:
1. If the width of the data is greater than the width of the column header's
title then size the column to be the width of the data value.
2. If the width of the column header's title is greater than the width of
the data in the column then size the column to be the width of the column
header's title.
I can use the ColumnHeader.AutoResize method to size on either width of data
value or column header title, BUT, I cannot seem to be able to determine
which is the wider of the two to avoid displaying the ellipse (...). I was
trying to look for a way of detecting the ellipse (...) in the column
header's title but to no avail.
Does anyone out there know a way to do this?
Any assistance would be very much appreciated.
Many thanks.