I’m working with some older forms that use System.Windows.Forms.DataGridView. The form is quite complex, so converting it to Telerik isn’t straightforward.
I’d like to copy a row from RadPageView. Could you please provide a sample code snippet showing how to achieve this?
Thank you!
Radek
2 Answers, 1 is accepted
0
Dinko | Tech Support Engineer
Telerik team
answered on 16 Dec 2025, 02:58 PM
Hi Radek,
I appreciate your interest in our Telerik UI for WinForms controls.
The RadPageView control does not have rows, and I am assuming that you are referencing RadGridView. In that case, you will need to use the Microsoft OLE Drag-Drop methods to drag and drop a row from RadGridView to DataGridView.
In your scenario, let's say that the RadGridView and the MS DataGridView are bound to separate collections of type some custom object(GridItem). We will need to trigger the OLE DragDrop when the user clicks a row. This can be done in the MouseMove event of the RadGridView. Then you can subscribe to the DragDrop and DragEnter events of the DataGridView and handle the incoming data.
The approach here will be similar. Each of the grids will be in a separate form placed inside the MDI container form. You can move the logic for each grid to its respective Form. I am attaching my test project to demonstrate this better. You can extend the code to works on your side.