Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a custom object that i have written with the CollectionBase Class to allow me to add children of the same type. I also have multiple variables in that object, i would like to be able to get all occurrences of one of those variables and add them in a datatable.

I am trying to set up a drag and drop relationship with a property grid and a data table so when i drag a variable from the propertygrid to a datatable the datatable will create a column and fill each row with all occurrence of that variable, so i can see the whole structure.

I need to know how to convert the main object to the customobject.variable that has been dropped onto the datagrid for each occurrence of customobject in customobject.children.

I was wondering if anyone knew of a neat way of doing this.

sorry i dont have any example code I am at work atm.
Posted

1 solution

I could do a lot of explaining but everything about this question can be found at the link below. Just implement the IDataObject.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.dodragdrop.asp[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900