By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,136 Members | 1,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,136 IT Pros & Developers. It's quick & easy.

drap and drop in a datagrid

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a

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.