Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New GridDragDropper class in Downloads section.
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
New GridDragDropper class in Downloads section.
Miscellaneous
Thread ID:
00502341
Message ID:
00502341
Views:
55
Hi All,

You want to drag and drop cell values within the grid, between the grids or to outside controls?

Nothing is easier if you have GridDragDropper.

Forget to think of it as a very complicated task that requires adding properties and code to many different methods/controls.

In order to use it, you need to drop GridDragDropper class over your grid (at the same level that is, not into the grid or column). That's it.

GridDragDropper has no custom properties or methods. There is nothing to set up. No changes required to your grid or any other controls in order to be able to receive the dropped values.

Features:

You may drag and drop any cell values within the grid, between the grids or to the controls outside the grid (also to another form).

To drag, use the Right mouse button over the desired cell and drag where you want it. Position the mouse pointer over the desired cell and drop it.
The values are automatically converted to the appropriate type (if applicable) when dropped.

For example:

If you drag Numeric (Integer, Currency), Date, Datetime values to the character textbox/editbox, they will be converted to the string.

Date type values automatically converted to Datetime and vice versa.

Character, Date, Datetime values ignored if dropped on numeric data type control.

Numeric data may be ignored when dropped on the controls bound to fields with incompatible size, or calculated columns in the grid.

Logical values dragging is not supported at the moment.

The data may be dropped on the grid which does not have its own GridDragDropper.

The existing values in the textboxes are replaced when dropped.

For the editboxes the data are inserted at the mouse pointer position when dropped (otherwise at the end of editbox text).

GridDragDropper works in VFP 5, 6, 7

Dr. Nick.
Grid Clinic.
:)
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
Reply
Map
View

Click here to load this message in the networking platform