Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wizard Created Grid: how2 change?
Message
From
14/06/2011 08:51:21
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01513637
Message ID:
01514276
Views:
218
>Hi all,
>
>I've created a form/grid using the wizard. I've also then changed column order, headings etc on the grid. When I run it, the Headings have moved the new order but the data displays in the same original columns.
>
>* I noticed that the grid.column.text.recordsource for each column was empty. I've entered recordsource info for all columns yet still get the same result.
>
>Gotta be a simple issue I *think*. Any experience with this?

Happens occasionally. No other remedy but to rebuild the grid again.
If you have to change grid settings dynamically at run time (and to avoid this kind of issues), good idea is to create grid class capable of rebuilding itself based on custom properties. Normally I set up my grids by setting few custom properties; one for delimited list of cursor columns and second for delimited list of captions for each column header. (Could be more properties depend on grid purpose)
Then I call method which constructs the grid based on these property settings.

HTH
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform