Hi Hans,
In FoxyClasses\Docs folder there is FoxyClasses.chm. Under grids classes check MultiSelectGrid and LocatorGrid documentation. Also open sample forms in foxyclasses\samples in design mode and check what properties are set for different purposes. Here is a quick recap:
You can use it w/o setting a single property - form.init:
Visual Fox Pro
1
2
3
4
| with thisform.LocatorGrid1
.cSQL = '* from (" + _samples + 'data\Customer")'
.Init()
endwith |
This creates a grid like VFP native grid but with added capabilities of search/sort/filter (try right click on a column, header click, typing in a column)
And here is another sample with the properties you should use most (suppose we want to create a customer form from customer data and use LocatorGrid as the navigator instead of other ways):
-Create a new form and size it a bit (would put a lot of fields and a grid on it)
-Put a locatorgrid
-Put customer table in its dataenvironment
-Select as many fields as you want from customer table in DE and drag&drop on to form, beneath grid, using RIGHT mouse button
-Select create multiple controls from the popup that pops when you drop (remember to use RIGHT button, otherwise it automatically creates a grid)
-Set locatorgrid's properties
cSQL: * from customer
followTable: customer
followTag: cust_id
followField: cust_id
-Run the form
Yen yaz 1907'ye yolla FB gelsin evinde yensin.
(sonra salaklar ciksin alin terine şike desin)