>Thanks Trey, I have also found I can click and drag a column. So if I increase the columncount by 1 (as you suggested) it adds the new column. I then clicked and draged the column to where I wanted it!
>
>However, in a FOR EACH oCol in THISFORM.grdAsso.COLUMNS, VFP still thinks it's the 10th column and not the 2nd, which it appears to be.
>
>Thanks again for the input.
>Julian
>
>PS: Any thoughts on this ordering?
Columns number is the number in the creation sequence. You can place this new column in any position, but it still would have last number in the columns collection and you could not change it. That's very inconvenient, especially if you're using ActiveColumn property... So, you can not assume that ColumnOrder = n and it would be the same as Columns(n) :( I've just had an application, where I had to remove one column. I found its number empirically :)
If it's not broken, fix it until it is.
My Blog