Interesting. I'd never read into the -1 option and wasn't aware that you automatically get the correct headers
>hi,
>thank you very much,
>if i put Thisform.Grid1.ColumnCount = 12
>i see aother fields as header1,......header10
>
>but if i put it as MR.Alex Feldstein answer
>Thisform.Grid1.ColumnCount = -1
>it works, with the same fields name.
>
>thank you again.
>best regards.
>m.qasem
- 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.