We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drag/Drop from TreeView Node

Thread ID:





2492 Jan 23,2003 06:54 PM UTC Jan 23,2003 09:16 PM UTC WinForms 1
Tags: GridControl
Charles Carlin
Asked On January 23, 2003 06:54 PM UTC

I am having problems enabling drag/drop from a treeview control to a gridControl (not databound). I would like to override and only allow certain nodes from the treeview to be dropped on certain columns in the grid control. Currently I can not get the grid to accept any tree node. I was actually able to grab the sample OLE Drag/Drop app and drop text from the Richtext box there onto my grid control (I had no event code at the time on my grid control). Does the control only accept text? Any suggestions on how to implement this.

Administrator [Syncfusion]
Replied On January 23, 2003 09:16 PM UTC

Hi Chuck, You could either implement your own IGridDataObjectConsumer. The grid has two default IGridDataObjectConsumer objects registered for "Text" and internal grid data. But you can add your more consumers for your own data. See class reference for IGridDataObjectConsumer and RegisterDataObjectConsumer or let us know if you need sample code for this. - Or - You disable the grids default ole drop target behavior and then you just handle the ole drop target events of the Control class. You can disable the grid drop target behavoir with [C#] Model.Options.ControllerOptions = Model.Options.ControllerOptions & ~GridControllerOptions.OleDropTarget; Stefan


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon