Automatically set column width in flexgrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bashir3180
    New Member
    • Jun 2007
    • 2

    #1

    Automatically set column width in flexgrid

    Hi, all
    How can I widening MSFlexgrid coloumn so as it display data properly in coloumn. i.e AutoFit option to adjust coloumn text.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by bashir3180
    How can I widening MSFlexgrid coloumn so as it display data properly in coloumn. i.e AutoFit option to adjust coloumn text.
    Well, this might not be the best way. But you could create a text box (or just set the form) with the same font properties, use the .TextWidth() method to determine the width required for the text, then set the .ColWidth property to that.

    Comment

    Working...