Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Grids
Environment versions
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01036745
Message ID:
01036761
Views:
16
Jack,

A better question might be, "How do you get them out of sync?" :)
Seriously, the grid should be bound to the cursor/table/view and the other controls on the form should also be bound to that same cursor/table/view. What I suspect is happening is due to refresh issues. Once you change rows in the grid, you still see the previously selected row's data in the non-grid controls, right? What happens if you click into those controls? Does the right data appear? If so, then you just need to refresh the form from the grid's AfterRowColChange() something like this:
* Only refresh the form when the row changes
IF INLIST(this.RowColChange, 1, 3)
  thisform.Refresh()
ENDIF
HTH,
Chad

>When I am in a grid and am scrolling down and want to show a record, how do you make sure the underlying record is the same? When I scroll down and highlight a row and click to show the record, it shows the previous record in the recordsource. How do you keep them in sync.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform