Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

C# Drag & Drop Between Controls (Drag From ? Drop on DGV)

$
0
0

Hello all,

I'm working on a customized datagridview class.  I've got one major issue I have no clue how to address.  Drag & Drop.

I'm not picky about the "from" control, it can be a listbox, dgv, anything like that, whatever's easier.  I need to drag the item from it (string) and be able to drop it onto the selected DGV cell, apply a few bits of logic (ie saving it to my dataset), and have the text remain in that cell.  I know it has something to do with the drag events, but that's all I know.  Any useful pointers?  I've found a few threads on it, but by that time all the comments were conflicting as to what worked and didn't and my attempts failed.

Anyone who's good at this mind offering a few suggestions?  Like which events to use and what I actuallydo with them?  For clarity, it needs to go to the exact cell I drop it on, not just the row or column.  String data being dragged.


May the fleas of a thousand camels feast happily on the lower regions of your enemies. And may their arms be too short to scratch!


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>