Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I am getting crazy with filling grids dynamically
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
I am getting crazy with filling grids dynamically
Miscellaneous
Thread ID:
00854780
Message ID:
00854780
Views:
71
For most of my grids (vfp8), I am using the following method:
a) I do a select... into cursor cur_table
b) I fill my grid with
WITH THISFORM.wsgrid1
.Columncount = 8
.RecordSource = "cur_inv"
.Column8.AddObject("wscheckbox1", "wscheckbox")
.Column8.CurrentControl = "wscheckbox1"
.Column1.ControlSource = "cur_inv.invno"
... and so on

It works perfectly when it is just a grid to select or view the records but I have a problem if the grid is used for data input:

a) the valid code is not firing
b) If I put a checkbox there before filling the grid and I don't add a new object, I loose my checkbox

? Is there any way to define the objects within the grid and to not loose them (but still changing my controlsources)
? Is there any way to add code on the interactive change method of the added wscheckbox1 after my addobject command

thanks for any help
Eric
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Next
Reply
Map
View

Click here to load this message in the networking platform