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을 할 경우에는 위의 예제가 정상 작동하지 않는다.
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일 경우에 사용하는 방법이 있다.
열씸히 해봤지만 성공을 하지 못했다.
우선 현재까지 검토 한 내용과 샘플 소스를 개발 노트에 올려 놓는다.
추후 검토를 해서 성공을 하면 이 노트는 업데이트 할 예정이다.
'.NET' 카테고리의 다른 글
Telerik GridViewSpreadExport 이용 방법 (0) | 2022.06.27 |
---|---|
Telerik RadGridView drag and drop 할 때 row index 확인 방법 (0) | 2022.06.27 |
Telerik RadGrid Refresh, 동적으로 Binding data 변경 후 GridView Refresh (0) | 2022.06.03 |
C# winform 프로젝트에서 "디자이너 보기"가 사라지는 문제 해결 (2) | 2022.05.18 |
Telerik Winform GridView Scroll 표시 세팅 방법 (0) | 2022.04.14 |