VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > ColWidthMin Property |
Returns or sets the minimum column width, in twips.
[form!]VSFlexGrid.ColWidthMin[ = value As Long ]
Set this property to a non-zero value to set a minimum limit to column widths. Set it to zero to remove the minimum limit on column widths. Use the ColWidthMax property to set a maximum limit to column widths.
Setting limits on column widths may be useful in conjunction with the AutoSize method to prevent extremely long entries from making columns too wide or empty columns from becoming too narrow.
This example sets the minimum column width to 1/2 inch (720 twips):
fg.ColWidthMin = 720
Long