Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and drop in grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00544348
Message ID:
00545261
Views:
11
>Nadya
>
>thanks for suggesting the download. GridDragDropper
>This seems to be for moving cell contents around the grid.
>I'd like to be able to drag a whole row to a different position.
>
>Nick Mason

Yes, for now GridDragDropper moves the cell values around the grid and to outside controls. I might try to add some kind of row moving option later. The row moving solution depends on what you are doing and the type of your RowSource. In general, it is possible to get the row data and physically insert the record with INSERT command into a new place(which I don't like). Or logically rearrange the records in the source changing the value in the extra field you have the index on. The last solution is tough to implement in a generic class, as you never know what type of grid data it will be applied for. The data may not have the extra field for this type of indexing, or creating an extra field may not be appropriate, the grid cursor may not be updatable, etc.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform