5 Answers Found

You'de have to have way of generating that jscript from the web page as it wouldlikely need to have an idea of what the controls were called in the datagrid.The web page will generate an ID for the controls in the datagrid ... so youhave to have a way of storing them client side in arrays to enable yourjavascript to work.

Or .... just have a button or link in your first dg that calls a jscriptfunction with written param of the text box id's .... and the other dg that isto recieve the choices - well the best think to do would be to have it identicalto the first grid, that way you could simply replace a part of the string in thementioned function and it will make the placement.

You just nee to generate the script to do it from the server, thus enabling youto pass the correct params in the client functions that will do the work.

I wouldn't use checkboxes, I'd add a hyperlink which calls a function to makethe move, one for each row.

The html would look something like the following ... noting that all id's willbe generated by asp.NET so you need to be able to get their id's and write themstraight into your href links.

Closest thing I've ever done is move Items back and forth between ListBoxes.Doing that with a DG **should** be possible, but I wouldn't try it without aserious paycheck coming at the end of the week. Just thinking about all theJS code you'd need is giving me a head-ache. lol Not to mentionViewState concerns on PostBack.