Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh Grid Problem
Message
From
29/06/1999 19:54:20
 
 
To
29/06/1999 19:22:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00235584
Message ID:
00235618
Views:
27
>Hi Ed,
>
>Yes, I'm sure I'm doing this in an awkward way. Paramaterized Views would be ideal. However, rather than reworking the code, I'd rather slap a fix on my Kludge.
>
>My DE has a mother-daughter relation with invoice1 and invoice2. Invoice1 is the billing info, Invoice2 are the line items. They are related by invoice number.
>
>Now, if I don't move the record pointer to a different invoice number prior to appending records to a new invoice through my form, everything is fine.
>
>But, if my order entry person goes to a previous invoice number, then that previous invoice's line items shows up in the grid instead of the appended records.
>
>Just before I code the grdbase1.refresh, I make sure the record pointer is in the proper place.
>
>Select Invoice1
>seek lcInvoiceNo
>sele Invoice2
>seek lcInvoiceNo
>thisform.grdbase1.refresh()
>
>Do I need to refresh the individual columns of the grid instead?

No, the Grid's Refresh() method should call all the contained controls' Refresh methods, but you may need to move the record pointer into view within the grid.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform