Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-Select Grids???
Message
 
To
09/02/1999 11:52:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00185539
Message ID:
00185547
Views:
21
>Has anybody got any thoughts or examples of how to implement multi-select grids with functionality similar to that available with listboxes???

That's sort of contrary to what a grid is. Grid rows represent records in a table. You can't have multiple records selected in a table, you can't have multiple rows selected in a grid. (Yes, you can lock multiple records in a table, but only one is currently selected.)

That said, there's a fairly easy way to simulate multiple-row-selection in a grid, just base the grid on a cursor with a dummy logical "Selected" column which the user can check on or off (CheckBox in the grid column). This is used by some people I know for purposes like selecting what records to report on, or to do a REPLACE ... ALL FOR Selected command.

But if you know how to make a multi-select listbox, is it important to use a grid to "simulate" it? You may have a very good reason (or several), but any time I hear "How can I use xxx to simulate yyy," my first thought is "Why not just use yyy?"

HTH,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform