Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column order
Message
From
20/06/2003 15:07:11
 
 
To
20/06/2003 14:17:29
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00802359
Message ID:
00802384
Views:
17
At the moment, I have hard coded resetting each column by it's name to it's original order. There has got to be an easier way.

Off the top of my head, you could add a custom array property to your grid and populate it at runtime in the init() of the grid with code ( UNTESTED! ) like this:
IF DODEFAULT()
  DIMENSION This.aColumnOrders[ This.ColumnCount ]
  FOR lnCol = 1 TO This.columnCount
    This.aColumnOrders[ lnCol ] = This.Columns[ lnCol ].ColumnOrder  
  ENDFOR
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform