Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding data to Grid Control
Message
From
30/08/2004 12:16:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00937635
Message ID:
00937673
Views:
16
>Hi All,
>
>I am finding some more "holes" after upgrading from VFP6 to VFP8:
>
>In a generic search routine I have the results in a cursor, which I then "bind" to a Grid with thisform.MyGrid1.RecordSource = "search_crsr".
>
>I don't recall having a problem with VFP6, but now, the Grid "does not want to be bound" to the newly created cursor, and instead, it is bound to current open table.
>
>What am I doing wrong?
>
>Thanks, J

J,

Two things to try

(1)
thisform.MyGrid1.RecordSource = ''
thisform.MyGrid1.RecordSource = "search_crsr".
(2)
create the cursor in the load() of the form
'bind' the cursor to the grid in the form designer (RecordSource)
zap the cursor
append the new/modified data to the cursor
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform