Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing/setting grid recordsource on the fly
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00735248
Message ID:
00735363
Views:
8
In addition to what John said, look to "VFP Grids Part I" article here, where this problem explained in detail.

Interesting set of articles. Actually it seems that I want reconstruction! I tried the following:
if type("thisform.pgfwiz.page3.grdRequirements") = "O"
    thisform.pgfwiz.page3.removeobject("grdRequirements")
endif
thisform.pgfwiz.page3.AddObject('grdRequirements','Grid')  
this.grdRequirements.recordsource = "csrRequiredClasess"
this.grdRequirements.recordsourcetype = 1
this.grdRequirements.left 	= 2
this.grdRequirements.height 	= 252
this.grdRequirements.width 	= 492
this.grdRequirements.visible	= .t.
this.grdRequirements.refresh()
This brings up a grid with the correct headers -- but no data is present and all the delete markers are darkened. The underlying cursor has 3 records in it. By the way, I am using VFP 6 in this situation.

Thanks,

Kevin
Kevin Emmrich
www.jkt9000.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform