|
|
|
start date: Wed, 02 May 2007 06:28:50 -0700,
posted on: microsoft.public.dotnet.framework.aspnet.datagridcontrol
back
| Thread Index |
|
1
Dan Morrow AM
|
|
2
Eliyahu Goldin
|
|
3
Eliyahu Goldin
|
|
4
Dan Morrow AM
|
having trouble with drag-n-drop of multiple items
I'm having trouble handling drag-n-drop of rows from a DataGridView.
The SelectionMode is FullRowSelect, so when I click, the whole row gets
selected, not just cells.
What I'd like to do is select rows 1, 3 and 5 (by control-clicking) and
then click one more time, and drag all three rows.
The problem that occurs is that when I do that last click (to perform
the drag) all the rows unhilite, and only the row that I clicked on
stays hilited. This is not desirable behavior, obviously.
I'd really like my DataGridView to do drags the same way that Outlook or
Windows Explorer (or any program that has a list of things like this).
But I can't seem to find the right way to do this.
If I'm just dragging one row, then this works fine, but I need to
support dragging multiple rows.
Thanks for any help in this matter,
-Dan.
P.S. - I've been a programmer for many years, but I'm a relative newbie
to VB.
Date:Wed, 02 May 2007 06:28:50 -0700
Author:
|
Re: having trouble with drag-n-drop of multiple items
Dan,
Are you in Windows or in a web application?
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Dan Morrow" <dmorrow@maned.com.NOSPAM> wrote in message
news:20070502092931448-0400@msnews.microsoft.com...
> I'm having trouble handling drag-n-drop of rows from a DataGridView.
>
> The SelectionMode is FullRowSelect, so when I click, the whole row gets
> selected, not just cells.
>
> What I'd like to do is select rows 1, 3 and 5 (by control-clicking) and
> then click one more time, and drag all three rows.
>
> The problem that occurs is that when I do that last click (to perform
> the drag) all the rows unhilite, and only the row that I clicked on
> stays hilited. This is not desirable behavior, obviously.
>
> I'd really like my DataGridView to do drags the same way that Outlook or
> Windows Explorer (or any program that has a list of things like this).
> But I can't seem to find the right way to do this.
>
> If I'm just dragging one row, then this works fine, but I need to
> support dragging multiple rows.
>
> Thanks for any help in this matter,
> -Dan.
>
> P.S. - I've been a programmer for many years, but I'm a relative newbie
> to VB.
Date:Wed, 2 May 2007 16:59:18 +0300
Author:
|
Re: having trouble with drag-n-drop of multiple items
In Eliyahu Goldin wrote:
> Dan,
>
> Are you in Windows or in a web application?
>
Eliyahu,
I'm in Windows.
-Dan.
Date:Wed, 02 May 2007 09:52:13 -0700
Author:
|
Re: having trouble with drag-n-drop of multiple items
Then you should post in windows form groups. This forum is for web
applications.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Dan Morrow" <dmorrow@maned.com.NOSPAM> wrote in message
news:20070502125216767-0400@msnews.microsoft.com...
> In Eliyahu Goldin wrote:
> > Dan,
> >
> > Are you in Windows or in a web application?
> >
>
> Eliyahu,
>
> I'm in Windows.
>
> -Dan.
Date:Thu, 3 May 2007 00:14:24 +0200
Author:
|
|
|