Need help regarding drag and drop between Listview and Treeview.
I've got the following situation :
On my form, I have a treeview on the left and a listview on the right.
The treeview holds the descriptive names of some article groups.
The listview is used to display the articles contained in an article group.
When i click a node on the Threeview, the listview gets filled with the
articles in that group. So far so good.
Here it comes :
I want to give the user to use some drag and drop functionality to change
the group to which an article belongs by using drag and drop.
So the user clicks 1 or more articles (multiple selections are allowed)
in the listview and he starts a drag. When the dragged items are dragged over
the Treeview, the respective nodes are highlighted but when the drop action
is instantiated, nothing happens. The group-id's of the articles in the
underlying database aren't changed.
I know the problem resides in the data structure created when instantiating
the drag and the datastructure that is returned when instantiating the drop
operation.
Is there a function available like Ctype to cast a listitem to a treenode.
Any help would be greatly appreciated.
I've got the following situation :
On my form, I have a treeview on the left and a listview on the right.
The treeview holds the descriptive names of some article groups.
The listview is used to display the articles contained in an article group.
When i click a node on the Threeview, the listview gets filled with the
articles in that group. So far so good.
Here it comes :
I want to give the user to use some drag and drop functionality to change
the group to which an article belongs by using drag and drop.
So the user clicks 1 or more articles (multiple selections are allowed)
in the listview and he starts a drag. When the dragged items are dragged over
the Treeview, the respective nodes are highlighted but when the drop action
is instantiated, nothing happens. The group-id's of the articles in the
underlying database aren't changed.
I know the problem resides in the data structure created when instantiating
the drag and the datastructure that is returned when instantiating the drop
operation.
Is there a function available like Ctype to cast a listitem to a treenode.
Any help would be greatly appreciated.