I have written a method to autosize a datagrid but the problem is getting the minimun width of the caption header when the header has more than 1 line and when there are more words than lines. If I just autosize by the data you may not see all the header. If I the the length of the header I get the whole string which makes the column much too wide.
Ex caption = "Receive UnCor Rdg"
lines in the header = 2
the shortest possible length is 9 characters
1st line = Receive
2nd line = UnCor Rdg
I want to find out the minimum width required to display the text. This is just 1 example.