469,575 Members | 1,538 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

drap and drop in a datagrid

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
Nov 16 '05 #1
1 3367

I always thought this Dino Espisito article was cool. It shows how to
drag and drop columns in an asp.net DataGrid:

Extend the ASP.NET DataGrid with Client-side Behaviors
http://msdn.microsoft.com/msdnmag/is...e/default.aspx
--
Scott
http://www.OdeToCode.com

On Thu, 15 Jul 2004 08:00:08 -0500, "Torre Quinn"
<to********@gamestop.com> wrote:
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


Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Marlene harkcom | last post: by
5 posts views Thread by Clyde | last post: by
2 posts views Thread by Ken Loomis | last post: by
2 posts views Thread by Joey Liang via DotNetMonster.com | last post: by
2 posts views Thread by pmclinn | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.