473,666 Members | 2,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drag & Drop in datagrid.

41 New Member
Hi to all.
I m having project with VB6.0 as front End and Access-2003 as backend. In one of my code I m having Datagrid with ADODC as datasource. I want Drag & Drop Functionality in Datagrid as like in Excel so that I can paste value in to other rows just by drag & Drop.
Is it possible?

Thanks.
Nov 17 '07 #1
6 4218
Neelesh2007
41 New Member
Hi all,
Please pass comments that is it possible or not? if posible give me hint or some sample code.

thanx.
Neelesh
Nov 24 '07 #2
Neelesh2007
41 New Member
My problem is still unsolved. Can anybody guide me?
Thanks
Neelesh
Jan 9 '08 #3
Killer42
8,435 Recognized Expert Expert
My problem is still unsolved. Can anybody guide me?
Wow, impatient aren't you! ;)

Seriously, sorry you don't seem to have had a response to this in nearly two months.

Can you provide a bit more detail on exactly how you want the drag and drop to work, from the user's point of view?

For instance, are we talking about dragging a single cell, or what? And when you mention Excel, are you talking about dropping things from elsewhere onto Excel, or grabbing the corner of a cell and dragging it to fill a range? Or something else entirely?
Jan 9 '08 #4
Neelesh2007
41 New Member
Actually I want to grab the value of a Particular Cell in Datagrid and Fill this value in succeeding cells of Datagrid in Particular column by Dragging these Cells.
e.g. suppose in column 5 of my datagrid 8th Row contains Value Baroda, I want to grab these value "Baroda" and I want to Fill This value in Succeeding Rows in Same column by Dragging mouse over the Rows.
I hope you get me.
Thanks
Neelesh
Jan 10 '08 #5
Neelesh2007
41 New Member
My Question is still unanswered.

Neelesh
Feb 5 '08 #6
Killer42
8,435 Recognized Expert Expert
Since nobody else seems to be showing any interest, for some reason...

I've been having a quick browse of the events for the DataGrid control, and it doesn't look very promising. It seems to be designed mainly to work with an individual "current" record, while you really want to drag from record to record. In other words, you want to treat it as a "real" grid, similar to a spreadsheet, while MS didn't really design it that way.

Perhaps you will need to do something like tracking events such as MouseDown and ColRowChange (or SelChange), and copying values to/from the grid at appropriate times.
Feb 6 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
4955
by: Clyde | last post by:
I am trying to implement the user feedback provided by Windows Explorer when draggng a filename from one place to another. I have the drag and drop action worked out but have had no luck in finding how to capture the piece of the screen into a bitmap to simulate the movement. I know this could be done with the Windows API but can't find any way to do it with .Net functions. Any help is appreciated.
3
10402
by: Ajay Krishnan Thampi | last post by:
I have a slight problem implementing 'drag and drop' from a datagrid to a tree-view. I have pasted my code below. Someone please advice me on what to do...pretty blur right now. ==code== using System; using System.Drawing; using System.Collections; using System.ComponentModel;
2
9195
by: Grey | last post by:
I need to design a workflow application with C#. I want to design an UI with some workflow components which they can be drag & drop anywhere in order to design the workflow for the application users. Moreover, when the user double click on the component, they can define some routing rules for the process. Is it possible to have such fancy UI in C#?? Any reference sites or tutorial?? Million Thanks.
2
3360
by: Ken Loomis | last post by:
Hello: I have spent two days on drag and drop now and I'm getting no where. I am trying to drag an item from a listbox and load it into a datagrid (actually a child of the datagrid, but I'll be happy for now to get to the parent.) I can get the selected row of the target, but that is not the same as dropped_on row. I've tried to get the mouse_up event, but drag and drop seems to override the mouse_up. I've tried the hitTest but it...
3
1641
by: Demetri | last post by:
If one were to develop a web server control (web control library), which enhances the datagrid by implementing a class that inherits from the DataGrid class, and give it drag and drop capability. In other words a re-usable server control that is a datagrid only it allows a user to drag it around the web page. Any suggestions on how to implement the drag and drop feature? I looked into htc's but that would require htc files for the...
6
3545
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product where the user can run on firefox/mozilla, what would be a good approach. 1. Should I overwrite the javascript code drag-and-drop to make it more browser independent. If I want to go this route, can anybody provide me a
3
10586
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
5
13768
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with drag&drop on the same page (which was not possible). Now i´ve a new concept of the script, more object oriented. I´ve also commented the whole code so you guys can easier understand it engine. What exactly we need when trying to make a column drag &...
4
5657
akashazad
by: akashazad | last post by:
Dear Friends In my Project I want to Drag the text of the Text Box into any Particular cell of the DataGrid which ever user wants to, but my problem is I am not able to find the Coordinates of the cell cell in which user will drop the text and hence not able to put the text into desired Cell. Code snippet below shows the code in the Dragdrop event of the dataGrid Dim sText As String = "" Dim nrow As Integer = 'Need...
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7378
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6189
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.