Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method in Grid Textfield stops working
Message
From
06/10/2002 11:20:21
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
06/10/2002 08:24:28
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00708183
Message ID:
00708193
Views:
6
Peter

Two suggestions. First, you need to set the grid recordsource to space(0) before you refresh the cursor then set it back afterwards.

A better way is to create a cursor with the same columns as the sql cursor. Then when you refresh, you zap the cursor that the grid is using and then append from the sql cursor. Last year I changed my data handling classes to do this and my life is much better now.



>Initially everything works. The RightClick method assiated with the Grid1/Column1/Text1 field fires and does what it's supposed to (activate another page in the pageframe).
>
>Since the data in the grid are based on a SQL Server query, the data are frequently refreshed.
>
>At the first refresh the RightClick method stops working.
>
>I know from previous experience that the grid has trouble with binding, so I have tried setting the CurrentControl property back to the text field, but all in vain.
>
>
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform