have a big issue from a project im trying to take over.

basically they want a copy and paste feature where it will copy a product (which has many different data sources and datagridviews) and paste it into a new customer

fair enough, I got that to work - kind of. The problem being that when you save it, it checks to see if the DataSource of the gridview is dirty, in other words if any new items have been added and if so, it will then save that part of the product.

I cannot seem to make this work at all. I did make it work but the problem was that it wouldnt save the right recipe but some other recipe unknown somewhere else - its very hard to explain.

The other thing was that if we associate this product with a customer, it appears to remove the product/recipe from the previous place it was copied from.


It's using some codesmith tool to get and save data - no idea how the hell it works but doing the best I can.

I can see that if I add a new product to an existing customer that the productrecipebindingsource still contains the previous recipie but when pasting, it does paste the details fine however it wont save the recipe as its not marked "dirty". The marking is done when you do an AddNew() in the Recipe datagridview but when you do an AddNew() it will of course, insert a blank record but i want to paste in a record rather than create a new one.

any logic ideas on what I should do?