Neil
With Thisform.grdMyGrid
For I = 1 to .ColumnCount
.Columns( I).Width = 200
EndFor
EndWith
Of course, you can always set them visually in the form designer.
Your servant
Terry
>I have a grid on a form which is populated by a cursor. Is there anyway that I can set all columns in the grid to a default width? Bare in mind the cursor can be populated by a query on another table which could have more columns.
>
>Many Thanks
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.