Here is a Generic routine I've put together a while back:
VB Code:
  1. Public Sub ResizeGrid(pGrid As MSFlexGrid, pForm As Form)
  2.     Dim intRow As Integer
  3.     Dim intCol As Integer
  4.    
  5.     With pGrid
  6.         For intCol = 0 To .Cols - 1
  7.             For intRow = 0 To .Rows - 1
  8.                 If .ColWidth(intCol) < pForm.TextWidth(.TextMatrix(intRow, intCol)) + 100 Then
  9.                    .ColWidth(intCol) = pForm.TextWidth(.TextMatrix(intRow, intCol)) + 100
  10.                 End If
  11.             Next
  12.         Next
  13.     End With
  14. End Sub

Then just call this routine like this:


ResizeGrid MSFlexGrid1, Form1