Solved

GridView: Drag and Drop

Posted on 2011-03-16
1
471 Views
Last Modified: 2012-05-11
Hi,

Using VS 2008/C#/odp.net

In a modal Popup I have the following defined.

I have a GridViewLeft and GridViewRight. It has columns CheckBoxLeft/CheckBoxRight and column desc both for same.
The datakey name is ID. I also have a search text box to search for an item in GridViewLeft.( No functionality not yet added.
My idea was either filter the gridview or rebind the gridview with the new search string)

The GridViewLeft is populated using a objectdatasource. (Depending on a value selected by the user in the page
the data might come from one of the 2 tables or a combination of both.)

Now I need to either drag and drop rows from left to right gridview or add a button to move checked rows from
left to right. Just confused how to obtain the datatable from the object datasource and using datatable methods
live add & remove to move rows.

Finally clicking OK I would like return the selected ID's.

Looking for an easy solution either using objectdatasource or just by assigning datatables as datasource obtained during runtime
using a business class.

Tried using a business class & populating the gridview. But for some reason the paging is giving error.Cloned the right grid to
the left.Also had some issues getting the column values. Not sure if the check box defined in the left gridview will be cloned
automatically unchecked with desc value populated from left grid.

Any input is appreciated

SUresh
0
Comment
Question by:arvee2003
1 Comment
 

Accepted Solution

by:
arvee2003 earned 0 total points
Comment Utility
THanks for the service. No response for 5 days
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now