Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selections in grids like MS explorer
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00472159
Message ID:
00472172
Views:
48
>I would like the ability for users to select one or more records in a grid by
>shift drag to highlight adjacent records or control-click for selected records. Then carry some action on those selections. (mimic the MS Explorer).
>
>Any ideas on how to accomplished this?

There's no real way to do this in a grid; it's record-oriented. You could emulate it by having a field in the record to indicate selection or non-selection, and add code to the grid's AfterRowColumnCHange event to detect if the current state of record needs to be switched, and use the DynamicBackColor property to distinguish between selectged and unselected items. It'd involve a considerable amount of code. It might be easier to use a control designed for multiselection linke the ListBox for this task.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform