Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child Grid
Message
From
09/05/2001 03:13:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/05/2001 22:11:35
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00504582
Message ID:
00505149
Views:
27
>>>I have a grid in a page in a pageframe for which the recordsource is a table containing child records of the main table. ( eg invoice items)
>>>Now when I change the record of the master table the grid re-displays nicely in every circumstance EXCEPT where the grid has the focus in which case the grid display doesn't change.
>>>If I change the focus to the page caption before moving the master record pointer it works of course, but this seems such a kludge - is there a simpler way?
>>>
>>>TIA
>>
>>David,
>>Could you give some more info to reproduce the behaviour ?
>>Subclassed grid with some code preventing it ?
>>If you change master record pointer from within child grid all you need might be :
>>
*pointer moving code
>>select myParent
>>thisform.refresh
>>Cetin
>
>Further to my last message.
>Ah ha... you are right, my pointer moving code does not select the parent alias, it uses the "IN" terminology, eg SKIP IN (thisform.cAlias)
>So I added a .movePtr_pre() method to my form base class which is called by all pointer moving methods and simply does a select (thisform.cAlias).
>Fixed! Thanks
>(Still, that's quirky grid behaviour I was seeing, ;-))

Glad :)
Yes it's a quirk with grids and I use it whenever I hit a behaviour I can't explain in the first place.
FYI no problem you could send me the files in case not solved :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform