dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Sep 7, 1999

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Grid Disappears

Question:
I am calling one form from another. But after working in the called form, when I come back to the calling form, the grid that was there in the parent form is gone; instead, a white path comes. This is only when I call a form from another form that has a grid.

Why is this?

Answer:
The called form may be accidentally closing the alias that is the grid's recordsource. If this is the problem, you may want to consider giving the grid form a private datasession. This is accomplished by setting the form's DataSession property to 2, which insulates the alias of the grid form from being affected by any other form.

Another trick is to set the grid's recordsource to itself. For example, in the Activate method of the grid form:

 
this.oGrid.RecordSource = this.oGrid.RecordSource 
this.oGrid.Refresh()
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date