T
Torre Quinn
Does anyone have any good sites or resources dealing with adding drag and
drop functionality to a set of controls on a form? I'd like to try to get
several examples of varied applications of drag and drop being used on
different types of controls.
My current task is this. I have a treeview control and a data grid control.
The data grid has two fields, 'value' and 'name'. I want to be able to drag
nodes from the tree view and drop them into a field on the data grid. Mostly
I know how to do this part. What I need help with is if there is already
text in the field I want the dragged node text to be inserted into the field
text at the point that I drop it. For example: If my data grid field
contains the value;
"This is you brain. Any questions?" and the node text has the value "This
is your brain on C#.". When I drag the node text and drop it between the two
sentences in the data grid I want a final value of "This is you brain. This
is your brain on C#. Any questions?" in the data grid field.
Even if no one can help me with the above problem, I would still appreciate
any help with varied examples of drag and drop functionality. Thanks
drop functionality to a set of controls on a form? I'd like to try to get
several examples of varied applications of drag and drop being used on
different types of controls.
My current task is this. I have a treeview control and a data grid control.
The data grid has two fields, 'value' and 'name'. I want to be able to drag
nodes from the tree view and drop them into a field on the data grid. Mostly
I know how to do this part. What I need help with is if there is already
text in the field I want the dragged node text to be inserted into the field
text at the point that I drop it. For example: If my data grid field
contains the value;
"This is you brain. Any questions?" and the node text has the value "This
is your brain on C#.". When I drag the node text and drop it between the two
sentences in the data grid I want a final value of "This is you brain. This
is your brain on C#. Any questions?" in the data grid field.
Even if no one can help me with the above problem, I would still appreciate
any help with varied examples of drag and drop functionality. Thanks