Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3 Grid Questions
Message
From
08/07/1999 07:51:32
Andrzej Majlich
Vulcan sp. z o. o.
Wroclaw, Poland
 
 
To
08/07/1999 07:18:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00238736
Message ID:
00238754
Views:
12

>1 - the grid in question is the third page of a pageframe and simply presents the information in list form which is seen/entered in detail on page 1. No relationships. Nice and easy (I thought!)
>
>But how do I get it to 'start' at the record I'm looking at on the first page. It ignores my activation (or grid init) code (go to the current record as recorded on page1) and always starts at the top of the file.

It seems to me that only you think that you're on desired record while activating the grid. Try to display recno() at the moment.


>2 - How do I get the numeric fields to align right? The obvious path was to set the appropriate column textbox alignment property to "1 Right" but although I managed to correctly align the appropriate Header ("Middle Right") the textbox alignment sullenly ignores me!

Try to set InputMask column's property and set align of textbox to Automatic.


>3 - I select a query and rename it to the same name as the original file in order to preserve the way the forms work for the selected data. While this works for the ordinary forms, the grid just goes blank! I suspect this has something to do with the event sequence and the fact that, for the query data, I have 'used' the database AFTER the grid has instantiated. If so, how can I force it to 'reinstantiate' after the query has been set up?

It's well known behaviour - when the grid's recordsource vanish - you unbind all properties of the grid. Youhave to preserve the original table while grid exists or set all properties once again. There is many "workarounds". You can define a custom grid and instantiate it as you recreate a source table.


>Finally is there a definitive guide to grid behaviour with code examples and useful hints?


Try some books, UT knowledgebase, archives or analyze TasTrade.
_________________

*|| Andrzej [NJ].
Previous
Reply
Map
View

Click here to load this message in the networking platform