Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating the Grid display in a form with a new cursor.
Message
From
08/07/1999 21:53:41
 
 
To
08/07/1999 04:25:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00238717
Message ID:
00239223
Views:
8
>On a form, I have a button that does an SQL select into a cursor. I then create a grid using AddObject. The grid displays the the cursor fine. But if I do another SQL select to the cursor using the the same name, then do a refresh on the grid it shows up with a column count of 0 and the display is blank.
>
>I don't understand why this doesn't work if the grid constrolsource still shows the cursor name.



Hi Kevin. You can Download my bwtable.zip at File Section Forms..

As Cetin mention, you need to set the ColumnCount = -1

but this coding will release all Column objects, header objects, textbox objects, thus, if you have some coding on them.

then you need to create a class for them and re-add them after reset the Columncount!!

^_^" Good Luck!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform