Hi
I am having issues with ResizeColToFillSpace
I have 20 columns which the user can hide / reorder at will. Sometimes the last column is not visible
How should I implement ResizeColToFillSpace? Do I have to find the last visible column like this:
Dim Cols&
For Cols = iGrid1.ColCount To 1 Step -1
If iGrid1.ColVisible(Cols) = True Then
iGrid1.ResizeColToFillSpace (Cols)
Exit For
End If
Next Cols
'Im a running this code everytime the user:
Resizes grid
Reorders columns
Changes column widths
Changing the visiblity of columns
..or is there a better way
Edited by moderator
2014-11-05T11:30:00Z
|
Reason: Igor/10Tec added code formatting