Due to the UI virtualization in RadGridView
, cell elements are created only for currently visible cells and are being reused during operations like scrolling, filtering, grouping and so on. This explains that when you scroll to select row 11, row 1 gets outside the view and its visual element is not associated with the respective data row any more because you don't need a visual element for it anymore.
According to the provided information, it is not clear what is the exact custom implementation that you have on your end. However, I believe that you follow a similar approach as the one demonstrated here: https://docs.telerik.com/devtools/winforms/controls/gridview/rows/drag-and-drop
In the PreviewDragStart
event you can store the data rows (GridViewDataRowInfo
objects) from the SelectedRows
collection. Then, in the PreviewDragDrop
event you can use this stored collection with data rows and execute the drop action you need. Thus, you are not expected to experience any problems since you wouldn't be working with the visual row elements that are being reused after scrolling. A similar approach is used in this article: https://docs.telerik.com/devtools/winforms/controls/gridview/drag-and-drop/rows-reordering-in-master-detail-hierarchy
Please give this solution a try on your end and see how it works for your scenario. However, if you are still experiencing any further difficulties, it would be greatly appreciated if you can provide a sample project demonstrating the undesired behavior that you are facing. Thus, we would be able to investigate the precise case and provide further assistance.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.