Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is my grid acting all weird?
Message
 
 
To
01/03/2012 13:52:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01536964
Message ID:
01536965
Views:
74
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All
>
>I've got a cursor that has a couple of memos in it, so I set up a grid for the non-memo and 2 editboxes for the memo fields on my Search form.
>
>The user can change the contents of the cursor, so in the Click method of the "Search" button I've got
>
>Thisform.GrdLookup.RecordSource = ""
>thisform.GrdLookup.RecordSource = "LookComb"
>
>When the grid first displays, it's showing the 10 columns I want it to show with header captions, etc, but after the 'Search' button is clicked, it displays as if I'd just thrown the cursor at the grid. Yes, I've got each column 'hooked' to its respective field. Why is my grid doing this? Other than to make me a little more crazy, I mean
>
>Dorris

Use safe select approach instead.

http://weblogs.foxite.com/andykramek/2005/03/19/using-a-safe-select-to-preserve-your-grid/
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform