I have simple example of VirtualStringTree (VST) with 4 columns and in 2nd or 3rd column I could have more text that fit the default column width. I have hoAutoSpanColumns enabled so the large text will overlap other columns, if they are empty. This works good. The problem is when text in 2nd or 3rd column should span over the full length of VST. In this case the large columns only extend to the end of last (4th) column.
Here is how 2nd column in line 3 only spans over 3rd and 4th columns and then it stops at the width of 4th column:
If I use AutoFitColumns to auto size 2nd column:
VST1.Header.AutoFitColumns(false, smaUseColumnOption,1,1);
then it pushes 3rd and 4th columns so they start at the end of 2nd column:
But I need 3rd and 4th column to stay at the same positions, like this:
Is there a way to auto fit 2nd column to text, but keep 3rd and 4th columns at the same positions as they were originally?