본문 바로가기
.NET

Telerik GridView Drag and Drop Example

by leo21c 2022. 6. 3.
SMALL

Telerik GridView DragNDrop.zip
0.02MB

Telerik GridView를 사용해서 Drag and drop 기능을 사용할 때 아래 싸이트에 나오는 방식으로 잘 되지 않아서 git에 올라와 있는 예제 소스를 다운 받아 빌드를 해봤다.

https://www.telerik.com/blogs/extending-radgridview-to-enable-row-drag-and-drop-functionality

 

Extending RadGridView to Enable Row Drag and Drop Functional

Learn how to extend the WinForms RadGridView control to give the users the ability to drag and drop full rows of data between grids. Download the sample to obta

www.telerik.com

이 것은 잘 된다.  Unbound Mode로 처리하는 예제이다.

 

하지만 일반적으로 GridView를 사용할 때 Data binding을 해서 사용을 한다.

Data binding을 할 경우에는 위의 예제가 정상 작동하지 않는다.

 

https://docs.telerik.com/devtools/winforms/controls/gridview/drag-and-drop/radgridviewdragdropservice?_ga=2.6389362.1731047227.1654215181-930908756.1653617507 

 

RadGridViewDragDropService - WinForms GridView Control | Telerik UI for WinForms

RadGridView handles the whole drag and drop operation by its RadGridViewDragDropService. It exposes the following public properties: By default, RadGridView supports rows drag and drop functionality in unbound mode out of the box. It is necessary to set th

docs.telerik.com

위에 싸이트를 보면 Bound Mode일 경우에 사용하는 방법이 있다.

열씸히 해봤지만 성공을 하지 못했다.

 

우선 현재까지 검토 한 내용과 샘플 소스를 개발 노트에 올려 놓는다.

추후 검토를 해서 성공을 하면 이 노트는 업데이트 할 예정이다.

LIST