Solved

GridView: Drag and Drop

Posted on 2011-03-16
1
475 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 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