Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop in a Grid Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00475375
Message ID:
00475607
Vues:
33
Hi!

Grid works by such way that a column's control accepts events only for current row. All other rows are just an image of the control repeated for each data row, nothing more. These rows do not accept any events, grid itself handles all events for such rows (for example, when you click by mouse, grid received mousedown event instead of control). The same considerations apply to other events such as DragDrop.

In addition, the easy workaround also is to place transparent shape or container over the grid to cover it and intercept all events. Do this for the duration of the drag/drop operations only.

>Hello, out there,
>
>I have two grid controls in a form called GridHost and GridGuest respectively. Each grid has only one column. I am trying to drag a textbox control from GridGuest to GridHost. The purpose here is to move a guest from one host to another. Everything went well until I discoverd that I conuld't drop it on the intended row in the GridHost. The row in GridHost does not change when I drop it on a row other than the currently active one. In other words, I could not move a guest to another host, which misses the whole point of this operation.
>
>Any help will be appreciated!
>
>Dawa
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform