Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column order not behaving properly
Message
From
26/01/1999 10:26:34
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00180072
Message ID:
00180247
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform