Has anyone tried building a grid or listbox that allows a user to reposition columns via a "drag and drop" interface?
I'm considering adding this feature to an application and am looking for any ideas on design or implementation. One particular nuance: Many of my grids don't show column headers so ideally I'm looking for a grid solution that works with both visible and non-visible headers.
Here's my rough draft idea for implementing this functionality: Place a transparent shape above each column of the control in question. These transparent column shapes would pass most mouse events down to the underlying control except for drag and drop events which they would handle as a mechanism for repositioning columns. One of the advantages of using column shapes is that I could turn on its borders during a repositioning to show what column was being moved? (BTW: Credit for concept of transparent shape technique goes to Cetin Basoz - Thanks Cetin!)
Any thoughts on this design and/or what type of drag and drop mechanism to use (VFP classic drag and drop, OLE drag and drop, or my own simple "drag and drop" managed via a mouse down event.
Malcolm