Article ID: 134251
Article Last Modified on 5/7/2003
Thisform.<gridname>.column(n).colunmnorder = <number>Here <number> is the column position you want the newly created column to be. Issue this command after you have inserted the column and before using the ThisForm.SaveAs command.
set safety off
do form x
x.grid1.name='mygrid' && change the default grid name to "mygrid"
x.mygrid.columncount=2 && dimension the column count to 2
x.mygrid.column1.width=8
x.mygrid.addcolumn(2) && add a new column between existing columns
x.mygrid.column3.header1.name='HdrItem' && change the header name
x.mygrid.column3.name='colItem' && change the column name
x.mygrid.colItem.hdrItem.caption='Item' && change the caption name
x.saveas('y') && save the Form as "y"
modify form yx.mygrid.colItem.columnorder = 2
Additional query words: kbvfp300 kbvfp500 kbvfp600
Keywords: kbbug KB134251