TADVStringGrid - Drag and drop Multiple rows?

Using D12 VCL , Using TADVStringGrid.

Problem was dragging X number of rows out of a grid to another control.

Included is a demo, showing how to do this and dropping them on a TMemo.

While this works…. I ponder if there is a better way built into TAdvstringgrid?

I tried the demos for this, but none of them did multi row select that I could tell. Just drag a cell and drop.

GridDragDemo.zip (5.1 KB)

TAdvStringGrid has also built-in support for OLE drag & drop but this requires an OLE drop client. TAdvStringGrid itself is also an OLE drop client but the memo unfortunately not. TAdvMemo is an OLE drop client, so could be used for this. TAdvStringGrid demo 28 demonstrates OLE drag & drop.
When you cannot use OLE drag & drop with a regular TMemo, your implementation is a valid alternative.

My original usage for this was to drag and drop to a TTreeView. But I take it that is basically the same problem. I used TMemo for this demo to make it bit easier to look at.

This would be a good demo maybe to have then for drag/drop multi row using non OLE ?
I can’t be the only one who needed to ever do this :slight_smile:

Yes, certainly would be a helpful demo. Thanks for sharing it here.