Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids on Form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00286355
Message ID:
00286507
Views:
18
Depending upon what you're doing with INV2, it may be necessary to programitcly set the recordsources for each column in the grid. I've had this behavior when I've used temorary cursors. What was happening in my case is that I did a create cursor in the init event. Then the user clicked on a button and I did another create cursor command. Problem was that when the create cursor command runs, first it destoys the existing cursor, which means for a moment the grid had invalid recordsources. What I had to do is create a method that re-assinged the recordsources and controlsource each time I re-created the cursor. Kind of a pain, but it's the only way I've found around the problem.
Don't know if any of this applies to what you're doing, but it's something to look at...

>Hello,
>I've encountered a weird situation concerning grid usage on a form and am hoping someone has seen this before and point me to a solution.
>I am developing in VFP 6.0 SP3 in an NT 4.0 environment.
>
>I have two grids on this particular form. The first one populates and works great. The second one, and any others that I may use, that work on a "new" form, will not work on this form. It just won't display - no matter what I've tried.
>The form properties for consideration are:
>BufferMode: Optimistic (although this is read only - I've tried the default of none)
>DataSession: I've tried Default and Private
>
>The Grid Properties are:
>ChildOrder: None (nonrelational)
>COlumncount: 6
>Linkmaster: None
>Recordsource: INV2
>REcordsourcetype: Alias
>Relationalexpr: None
>View: Browse Browse
>Visible = .T.
>
>This grid, (or any other for tha matter), when "copied" to a blank form displays properly. There is obviously something about the form that prevents this from displaying and I can't get my arms around it.
>
>I've tried the INV2 file in the Data Environment and also without it in there - doesn't seem to make any difference. I'm sure the table is selected when the form shows, and that there is good data in the table. My program calculates various fields in the INV2 table prior to displaying the form, and all the form text fields reflect the proper compilation of these totals - so I know the file is being read and utilized. Anybody have any any ideas?
>
>Thanks in advance for your help.
>
>Barry
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform