Author Topic: drag from grid into tree Control  (Read 44 times)

CADwiesel

  • Member
  • *
  • Posts: 34
    • Autolispprogramme für Autocadanwender
drag from grid into tree Control
« on: October 12, 2017, 04:24:00 AM »
Hi there,
is there an soloution for dragging from an grid into an Tree control?
the event 'DragnDropFromOther wont be fired anyway i do an dropping from other controls.

My idea was to drag an text from an Grid into an item of an tree.

Anny suggestions?

Martin
Gruß
CADwiesel
Besucht uns im CHAT

roy_043

  • Sr. Member
  • ****
  • Posts: 319
Re: drag from grid into tree Control
« Reply #1 on: October 13, 2017, 03:10:00 AM »
AFAIK the Grid control does not support drag-and-drop operations.

Note 1:
You typically do not need any code for drag-and-drop operations. All you have to do is set the Drag/Drop Allow Begin and/or Drag/Drop Allow End properties to True.

Note 2:
The DragnDropFromOther event will fire when a drag operation from *another window* is completed.

Note 3:
I am unsure what you mean by dropping 'into' a tree item. If you drop something on a tree item the dropped item will become a new child.
« Last Edit: October 13, 2017, 03:14:00 AM by roy_043 »