Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids - Multi-select - Is it possible?
Message
From
05/03/2008 11:03:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/03/2008 10:57:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01298851
Message ID:
01298935
Views:
30
>>>>>>With a grid in vfp8, is it possible to get it to do multi-selection of the records?
>>>>>>
>>>>>>Can you point me to some examples?
>>>>>>
>>>>>>I have a single table, that I need to allow the user to view and delete or undelete as needed. No other editing of record is allowed. But they want to be able to highlight several rows and hit a button to mark records as deleted.
>>>>
>>>>I have done this by using the delete mark column (grid.DeleteMark = .T.). That's an oldie but goodie which the users found intuitive. IIRC there was some logic in the form's Save method to be sure no clicks were posted to the DBF unintentionally.
>>>
>>>Hi Mike,
>>>
>>>This is what I started with, but basic grids do not allow multi-selection of records.
>>>
>>>And the grids people have pointed me to that do multi-selections, don't show the deleteMark. It is very frustrating.
>>
>>Isn't clicking the delete marks in multiple rows multi-selection? Maybe I am missing something.
>
>No, They want to be able to click one record, hold down the shift key, and click another record at least two records away from the first, up or down, and have all records between those 2 records be selected - that includes the 2 records clicked. Then they could also hold down the alt key and select other single records.
>
>Does that make sense?
>
>Beth

Why not just use a list?

The standard for selecting individual lines is Ctrl-click, by the way.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform