Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid issue
Message
From
10/01/2002 10:36:37
 
 
To
10/01/2002 10:06:07
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00602969
Message ID:
00602980
Views:
38
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform