Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3 Grid Questions
Message
From
08/07/1999 17:55:58
 
 
To
08/07/1999 08:24:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00238736
Message ID:
00239130
Views:
13
Greetings Marcia
>
In the activate of Page3 put This.MyGrid.SetFocus(). It will go to the record number that you are currently positioned on in its RecordSource.
>

yup that worked.


>> 2 - How do I get the numeric fields to align right? <<

Set the alignment property of the grid column.

aha! that worked too and I won't even ask why it needed to be the column property and not its textbox!

>> If so, how can I force it to 'reinstantiate' after the query has been set up? <<

>Set its RecordSource to space(0) before you rip its recordSource out from underneath it.

Three in a row. And I even managed to figure out what to do when the grid reappeared but completely without structure. I rebuilt it in the page3 activate method. That was a ridiculous hassle to go through though. I thought about saving the grid as a class and then reinstating it, but I don't know how to do that yet, or even if it can be done.

How is it that the grid preserves certain features (like my refresh code and my 'AfterRowColChange' code) and loses the grid structure itself?

Only one niggle remains. The rightmost column is a 'Paid' column which prior to the query and rebuild displays as a nice friendly check box. I cannot figure how to reinstate that. Any suggestions?

Many thanks to one and all who all sent me variations on the same theme!

Harry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform