Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting multiple entries
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00344030
Message ID:
00344478
Vues:
31
Multiselecting in a grid by click and drag might be hard to do. The other standard of Ctrl-click and Shift-click might be easier. I don't know how exactly to use INKEY() to detect those. Perhaps someone can jump in here with that information. Assuming that's solved, a value could be changed for that record in an extra non-updateable field of a view underlying the grid which would be referenced in the .DynamicBackColor of each grid control. Perhaps a grid column would be bound to that field.

Implementing standard shift-click behavior would be more of a challenge, involving saving the previously selected record in the grid before the grid view's record pointer moved when the other row was shift-clicked. The .BeforeRowColChanged event would probably be useful.

>Hi Jill,
>
>>Thanks Jess, I wasn't specific, but that's what I meant when I wrote:
>>
>>>I know how to use a grid, w/a "select" column
>
> You can create your own grid class with such functionality using DynamicBackColor, but I'm afraid, it would be really tough to implement. I'm also interested in something similar (not a checkbox in the grid, as obvious, but not convenient for the end-user solution), but simulation of multiselect editable list or multiselect grid. I can say, that right now if list has more than 200 items, it starts to behave flanky :( I already noticed this and still can not resolve... I haven't checked VB listboxes, if they have the similar bug... Take a look into 'Flakiness behavior of listboxes' thread.
>
>Let me know about your approach.
>Thanks in advance.
>
>
>>But my client would like to use his mouse to drag and select multiple entries...I'll probably have to go with the checkbox in the grid. J
>>
>>>>I just looked at the List box and it looks like multiple entries can be selected, fine. I could use a control or a right click to make the change. But then the user loses the ability to enter data directly into the grid control.
>>>
>>>Why don't you use the grid as your control for multiple selection. You can add a field with logical type then make that as your controlsource in one of the column of the grid with checkbox control instead of textbox. The checkbox control will then be your basis on which records are selected in the grid. This is one way of achieving your desired functionality.
>>>
>>>>
>>>>I know how to use a grid, w/a "select" column, but wonder if there is any way to offer my client when he wants?
>>>>
>>>>Input is appreciated. J
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform