[HTML]<!-- Code in ASPX DataGrid -->
<ItemTemplate>
<input type="button" value="Move" onclick="javascript

wapList('<%# (Container.ItemIndex + 1) %>');">
</ItemTemplate>[/HTML]
//Javascript Code:
//function should take an input of the current index
function SwapLists(idx) {
var inpt = document.frmProdDetail.getElementsByTagName("input");
var list1, list2;
for (var i = 0; i < inpt.length; i++)
{
if (inpt[i].id.match('ctl' + idx + '_MyAspxListBox1') != null) {
list1 = inpt[i];
} else if (inpt[i].id.match('ctl' + idx + '_MyAspxListBox2') != null) {
list2 = inpt[i];
}
}
//Write your javascript to transfer selected items from list1 to list2
}