473,408 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Need help with Drag-and-drop works for muilti rows but not single

Hi, I'm using vs2005, .net 2 for a window application. My datagridvew was
working before when I drag just one item to another datagridvew. I modified
the code to do multiple rows draging. Now when I drag multiple rows it works
but when I drag one row I get this circle and a diagnoal line in it, I think
that's a "No" sign, when I'm draging to the target grid. When I release the
mouse button then nothing happen.
I track this to the Datagridview_MouseMove event where the DragDropEffects
variable is alway returned as null when I drag just one item:

DataRowView view = (DataRowView) dgv.Rows[info.RowIndex.DataBoundItem];
dragDroip = dgv.DoDragDrop(view, DragDropEffects.All);

Does anyone know what could be cuasing this? Thanks.
--
Thanks.
May 1 '07 #1
0 943

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yiu | last post by:
I want to do mouse drag event in the image button of Web form, have any method for me to use to do that event like java using C#? thx for help!!!
2
by: David McCulloch | last post by:
Although I am able to drag and drop HTML links, I am no longer able to drag Javascript links. In the past, I have been able to drag a link from such places as the TinyURL! link on...
0
by: Raja Gopal | last post by:
Hi , I am able to drag controls on to the canvas only when I am in grid layout but not when I am in flow layout . Please suggest me a solution. Thanks, Raja Gopal
1
by: jos | last post by:
Hi , I have a vb.net form without a Title Bar. How do i program such that i can still drag the window anywhere on my desktop?? Thanks Jots
2
by: William | last post by:
I am creating an application to categorize images from websites. I have tried a few sets of sample code to try to copy the image when it is dropped into my vb.net application but it seem that the...
2
by: CB | last post by:
Is it possible to drag the browser itself from inside the document window? What I want to do is open a browser window without a title bar, but be able to drag it around the screen as if I was...
0
by: joycsharp | last post by:
in my app, a listview control have many pic ,so i want to drag the pic to my desktop ,but i don't what i do. thanks .
0
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Being you can drag webparts from zone to zone, is there a way to control drag speed while dragging/scrolling up the page? I have a list of webparts that may go beyond the page. If a user wants...
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I want to drag my form which has no title bar but has a label. I want to drag my form by the help of that label. Thanx
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.