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.
Unfortunately, activation email could not send to your email. Please try again.

Drag/Drop from TreeView Node

Thread ID:

Created:

Updated:

Platform:

Replies:

2492 Jan 23,2003 01:54 PM Jan 23,2003 04:16 PM Windows Forms 1
loading
Tags: GridControl
Charles Carlin
Asked On January 23, 2003 01:54 PM

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 04:16 PM

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

CONFIRMATION

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.

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.

;