Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid with 2 panels does not refresh correctly.

Status
Not open for further replies.

SSSMan

Programmer
Sep 16, 2003
8
US
I have a form that has 2 grids.
The top grid has multiple product records and certain columns can be modified.
The bottom grid has the same layout but only contains 1 record that displays the default information for the product selected in the top grid.
Both of the grids have 2 panels displayed.
When the record pointer is moved in the top grid while the focus is in the Right panel, the recordsource for the bottom grid is requeried and the bottom grid is refreshed.
What is happening, is that the Right panel is refreshed but not the Left.
If the record pointer is moved in the top grid again, then the bottom grid is refreshed and the right panel is correct, but the left one now displays the previous information, like 1 record behind.
If I select the Left panel in the top grid, then the Left panel in the bottom grid is correct and the Right panel is 1 record behind.

Any suggestions?

Thanks, David
 
Check, if Grid.PanelLink = .T.

If it already is and both sides still get out of sync, try a double refresh with :
Grid.Panel=1
Grid.refresh()
Grid.Panel=2
Grid.refresh()

Bye, Olaf.
 
Olaf,
Thanks for your response.

The Panellink was set to .T.
I had already tried the double refresh using .Panel = 0 and .Panel = 1 but I still have the same problem.
The Left side display information from the previous record.

Thanks, David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top