I'm trying to set up 3 related gridviews. The goal is to have a header grid that controls the other two. Thus if the record pointer is moved in the top grid the contents of the bottom two should automatically change. I don't want to require the user to click on a field to cause it to happen. In VFP there is a method called AfterRowColumnChange basically I'm looking for a similar property in VB. In VFP I'd load all the data and work with it in memory. I've tried that but it would be OK to load the data for grids 2 and 3 on changes in grid 1.
Looked through the web and saw a lot about joins and stuff like that but this isn't a join because the top table will have 1 record per item and the 2nd table will have up to 5 records per item and the 3rd grid will have up to 100 records per item.
My selects will look something like this
Grid 1
Select * from items where year = theyear
Grid 2
Select * from levels where year = theyear and foreignkey = grid 1 key
Grid 3
Select * from detail where year = theyear and foreignkey = grid 1 key
While I might have several hundred records in Grid 1 each will relate to a unique batch of records in Grids 2 and 3.
Thank for the help
Looked through the web and saw a lot about joins and stuff like that but this isn't a join because the top table will have 1 record per item and the 2nd table will have up to 5 records per item and the 3rd grid will have up to 100 records per item.
My selects will look something like this
Grid 1
Select * from items where year = theyear
Grid 2
Select * from levels where year = theyear and foreignkey = grid 1 key
Grid 3
Select * from detail where year = theyear and foreignkey = grid 1 key
While I might have several hundred records in Grid 1 each will relate to a unique batch of records in Grids 2 and 3.
Thank for the help