Hi Marie,
>with this.grid
>.recordsource = tablename
>.columncount = 11
>.column1.controlsource = tablename.field11
>.column1.controlorder = 1
>.column2.controlsource = tablename.field1
>.column1.controlorder = 2
I think there no "column.controlorder" properties
if you want to change column order, try this :
With This &&&&& you don't have to put ".grid" in grid method itself .COLUMN1.COLUMNORDER=2
.COLUMN2.COLUMNORDER=3
.COLUMN3.COLUMNORDER=1
EndWith
And If You want to to Change Column.ControlSource
With This
.COLUMN1.CONTROLSOURCE='myTable.myField2'
.COLUMN2.CONTROLSOURCE='myTable.myField1'
.COLUMN3.CONTROLSOURCE='myTable.myField3'
EndWith
But if you want to add a field in your grid.recordsource table, you might have to add :
This.recordsource=This.recordsource
In grid.refresh() or before calling refresh method
HTH,
Senna
Senna Dwipayana
Being good is better
Being better is a bless