Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
 
To
18/10/2002 03:10:46
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Re: Grid
Miscellaneous
Thread ID:
00712657
Message ID:
00713834
Views:
14
Hi Gary.


>You "APPEND" records to an existing cursor - does this mean that you delete inappropriate records prior to display too? It might be worth reselecting the data using SQL-Select (if you are not using a view). To avoid the loss the of grid's structure, take a look at a couple of Codemine native grid methods; 1) SaveLayout; 2) RestoreLayout. Before the record source is changed, you call, SaveLayout and after the record source has been requeried, call RestoreLayout. This keeps the grid together and provides you with a nice fresh "lean" cursor. I use this technique quite a lot of the time.

Yes, the cursor starts empty every time the page2 is chosen. Then, I populate it. I will be glad to try the SaveLayout and RestoreLayout as soon as I'm able to navigate through the rows.



>No idea why at this stage. Does the grid work using your approach if it is out of the pageframe? It might be a good idea to try this isolated from the page frame. Get your grid working on its own. Prove it works and then put it back in the pageframe. If you are not using a view, have a look at the methods I have described and simply select the grid's data back into a cursor of the same name.
>I don't know why but I am getting a feeling that the problem may lie in the way you are repopulating the record source's data - hence the suggestion to isolate it from the pageframe.


One thing I've tried today. As you told me, put the grid alone in a form without pageframe. It didn't work. Then I put a standard VF7 grid on the form, and it worked fine. It must be something silly I'm missing here.


>Something tells me that it would take more than this to get you depressed <s>.

Took the day off yestarday ... I don't know what's better : windsurfing on Monday ... or knowing that my friends were working while I was windsurfing. I will ask one by one, they will probably be very happy to answer this ... what about starting with you ?


Até mais.
Ivan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform