thisform.grid1.columncount=5 && five columns on the grid
then if you need 7 columns
thisform.grid1.columncount=7&& seven columns on the grid
thisform.grid1.column[6].controlsource=Mydata.field6
thisform.grid1.column[7].controlsource=Mydata.field7
Juan C.
"Anyone who has never made a mistake has never tried anything new." A.E
"The important thing is not to stop questioning. Curiosity has its own reason for existing." A.E