Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Grid's Record Source property

Status
Not open for further replies.

VFPIt

IS-IT--Management
Jul 8, 2002
8
US
Hi! everyone,
I am using a grid that is redesigned each time a cursor changes. Now, a cursor can have different number of feilds and different width. I am controlling the output with a config table that holds all the necessary information. Suppose there is a cursor of 5 fields and it is displayed as I want the first time. Now I double click on (e.g. field two) a form appears to edit the original value in the table. It saves the information and returns but the second column that I used to double click is gone. instead there is a column at the end of the grid with nothing. Now I go to another cursor and click on this information again. It shows the changes and displays ok.
What I noticed was that I am changing RecordSource to blank and before this I am doing columncount as 0. If I switch the commands it works fine as I want.
My question is WHY?
 
ChrisRChamberlain ,
Thankyou for your prompt reply. It has helped me alot to understand the behavior of GRID.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top