property Column.AutoWidth as Long
Computes the column's width required to fit the entire group's client area

 TypeDescription 
   Long A long expression that indicates the width of the column to fit the entire group's client area.  

Use the AutoWidth property to arrange the columns to fit the entire group's content. The AutoWidth property doesn't change the column's width. Use Width property to change the column's width at runtime.

Private Sub autoSize(ByVal t As EXPLORERTREELibCtl.Group)
    t.BeginUpdate
        Dim c As Column
        For Each c In t.Columns
            c.Width = c.AutoWidth
        Next
    t.EndUpdate
    t.Refresh
End Sub

Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.