473,661 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

drag and drop in asp.net datagrid

Hi there,

I am trying to implement the task in which i have a datagrid filled with
data extracted from the database and a combobox in which i have populated
some data. Now what i want to do is that i select multiple rows from the
datagrid, drag them and drop them on to the combobox(dropdo wnlist) having an
item already selected. By this way i want some kind of grouping machanism in
which groups are loaded in the combobox and the data is there in the grid.

Is is situation practically feasible, mand if yes, pls help me out, its very
urgent.

thanks in advance
--
Sunil Pandita
Software Engineer
(OTS Solutions Pvt. Ltd. )

Nov 19 '05 #1
1 1754
it's doable with lots of javascript. There are also a few tutorials here and
there on how to accomplish that which basically involves trapping the mouse
down events on the client. if you google around you should find some good
code

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"sunil" <su***@discussi ons.microsoft.c om> wrote in message
news:79******** *************** ***********@mic rosoft.com...
Hi there,

I am trying to implement the task in which i have a datagrid filled with
data extracted from the database and a combobox in which i have populated
some data. Now what i want to do is that i select multiple rows from the
datagrid, drag them and drop them on to the combobox(dropdo wnlist) having an item already selected. By this way i want some kind of grouping machanism in which groups are loaded in the combobox and the data is there in the grid.

Is is situation practically feasible, mand if yes, pls help me out, its very urgent.

thanks in advance
--
Sunil Pandita
Software Engineer
(OTS Solutions Pvt. Ltd. )

Nov 19 '05 #2

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

Similar topics

3
2751
by: NewSun | last post by:
How can i drag a datarow from a datagrid to a other control? e.g. Drag a datarow from a datagrid to a TextBox,Then display one colnumn' value of the datarow . Or Drag a cell's value to a controll and display/handle the value in the other controll. Thanks in advance.
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;
3
1534
by: Benny | last post by:
Hello Experts, Currently I am working on a windows-based project using asp.net with C#. One of the project tasks is to create a scheduler. For example I have two datagrids with one rows each: dgA and dgB. On dgA, each column display a customer name; on dgB, each column is a date (i.e. 1st, 2nd, 3rd, 4th...). Now what I need to do is drop a customer name from dgA to any date in dgB.
1
7981
by: Adam Klobukowski | last post by:
Hello I'm trying to do basic drag and drop from DataGrid control. The problem is that after I start DoDragDrop, items in DataGrid will become unselected. I wish them to remian selected. I hav such code: private void dataGrid_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
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...
4
2421
by: sonu | last post by:
I want to drag rows from one datagrid and drop that rows in other datagrid. when we drop rows into 2nd datagrid the rows will be deleted from first datagrid i want this functionality in web application.
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
4218
by: Neelesh2007 | last post by:
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.
0
8432
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
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8758
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
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
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7364
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...
0
5653
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
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.