Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1705
Implement copy and paste functionality with business objects
posted

Hey guys, 

 

I bound my grid to a list of objects ( List<BO> ) and I was wondering how I can implement copy and paste functionality so the grid copies and pastes a  record and the underlying object.

I can see it works great with cell data, but can it copy whole records and paste (add) objects in the underlying datasource?

 

I currently have several lines of code to accomplish this to work with Ctrl C and Ctrl V and cancel the BeforeMultiCellOperation event. However I'm running into some issues since I also would like to copy back and forth from Excel so I was wondering what's the best way to copy whole rows with an object list as the datasource.

 

Thanks !