DragDropGrid

I recently was asked to implement Drag and Drop functionality in a windows forms app, and I was suprised to find that no one has posted a complete control that you can just throw on a page and use.

So I took some examples online, added in my own flavor, and created the DragDropGrid control. Its ready to be used as is.

The DragDropGrid will allow dragging and dropping of items between 2 grids of the same structure. It also allows reordering of items within the grid.

The "AllowDrop" flag must be turned on to accept a drop or reorder.
The "AllowDrag" flag must be turned on to allow the drag operation to begin.
The "AllowReorder" flag must be turned on to allow reordering of items within the same grid.

New Release V 1.1 - Now Supports DataBound DragDropGrids

Dragging And Dropping between DragDropGrids with a BindingSource is now supported. Violation of primary keys and constraints will result in no action and an underlying "First Chance Exception".

There is a new option in the properties window for DragType. Move is the defaut. This is a Cut/Paste. There is also now a Copy selection which is the equivilant of Copy/Paste.

THIS IS ONLY FOR 2.0 FRAMEWORK AND 2005. IT WILL NOT WORK IN 2003.

Last edited Jan 30, 2008 at 10:36 PM by burkeholland, version 8