Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid issue
Message
De
10/01/2002 10:36:37
 
 
À
10/01/2002 10:06:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00602969
Message ID:
00602980
Vues:
36
Hello Jeffrey.

I have two grids. One lists regions (south, east, west etc). The other grid lists all centers within a particular region.

I want to be able to allow my users to click on the check box in the regions grid and the center grid will display all those centers within that particular region and automatically populate the center grid checkbox.


Maybe I am misunderstanding, but it seems to me that you are making this more complicated than it needs to be. Why don't you set up a parameterized view for your centers using a view parameter of vp_region. Then, all you need is this code, called from the AfterRowColChange() of the regions grid:
IF INLIST( This.RowColChange, 1, 3 )
  vp_region = Regions.RegionPK
  REQUERY( 'lv_Centers' )
  This.Parent.grdCenters.Refresh()
ENDIF
Or am I missing something here?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform