Datagridview Drag Row Image

Experts, I have the drag and drop function setup between a datagridview and a treeview. The treeview represents product categories and the items belonging to that  category are displayed in the datagridview. My users can drag an item from the datagridview onto the desired node in the treeview to change the category of the selected item in the datagridview. I would like that when the user drags the selected item from the datagridview instead of displaying the default dragdropeffects, I would like it to appear that they are actually dragging the entire row. So visually the row they selected follows the mouse to the treenode where they will drop it. How can this be accomplished?
BasicfarmerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

plusone3055Commented:
The only way I can see that happenening is that you already have pre made screenshots of the entire row, assign then to an array or list, match them against the value you drag to display the entire row as your are dragging the single value..

I assume that your code is taking the value that you are dragging into the tree node. So if you dragged the whole row the treenode function would break as it would try to take in all values from the data row.
0
BasicfarmerAuthor Commented:
That's right, I am only taking the ID of the data table which is that data source for the data grid view. So I guess how could I crest a bitmap of that row and then have that bitmap follow the mouse
0
plusone3055Commented:
Honestly what i would do is take one screenshot of one row and make that the image that is shown when you selecr a datgrid row..
The reason the client wants this is  inexplicable to me.. your gping to spend more time  imaging each row versus all the code you  wrote
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BasicfarmerAuthor Commented:
Thanks for the advice. I will steer away from this approach...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.