Since GridView is just a table when rendered, all it takes is the table
object model and dhtml:
function updateGrid(iRow, sName, sCity, sState){
//new row
var gridView = document.getElementById('GridView1');
var oRow = gridView.insertRow();
var oCell = oRow.insertCell(0);
oCell.innerHTML = sName;
oCell = oRow.insertCell(1);
oCell.innerHTML = sCity;
oCell = oRow.insertCell(2);
oCell.innerHTML = sState;
/*update existing row
gridView.rows[iRow].cells[0].childNodes[0].nodeValue = sName;
gridView.rows[iRow].cells[1].childNodes[0].nodeValue = sCity;
gridView.rows[iRow].cells[2].childNodes[0].nodeValue = sState;
*/
}
--Marc
"Marc Pavo" <mp**********@spam.bio-optronics.comwrote in message
news:uh**************@TK2MSFTNGP04.phx.gbl...
Since Ajax.net isn't production-worthy yet, I'm looking for any info on
this (as well as manipulating GridView from client script in general).
Thank you!