Boy, I feel as if I'm using FoxPro for the first time. I have two grids on the same Tab Page of a form. Both grids are tied to views. I have set up the relationship between the views as follows.
The TicketDetailView contains a list of items and the TicketTaxView contains a list of possible taxes to apply to the item in the TicketDetailView. When first displayed the TicketTaxView only contains the taxes that have been applied, when the Edit button is clicked, all possible taxes are added to the TicketTaxView for each item in the TicketDetailView. This works just fine. The problem is when I double click one of the tax rows (not the first row) in the grid for the TicketTaxView, the record pointer jumps to the first record in the grid. This only happens the first time, after that everything is fine. Also if I click in the TicketDetailView and change the detail record pointer, it works fine. I’ve used grids a lot, but this one has me stumped. Probably something really easy I’m missing here.
Auguy
Sylvania/Toledo Ohio
Code:
* Form Load code
USE TicketDetailView NODATA IN 0
=CURSORSETPROP("Buffering", 5, "TicketDetailView")
USE TicketTaxView NODATA IN 0
SELECT TicketTaxView
INDEX ON STR(TktDtlFK,8,0) + TaxID TAG Item_TaxID
SET ORDER TO Item_TaxID
=CURSORSETPROP("Buffering", 5, "TicketTaxView")
SELECT TicketDetailView
SET RELATION TO STR(TktDtlPK,8,0) INTO TicketTaxView
GO Top
Auguy
Sylvania/Toledo Ohio