i wrote following code to do some of a specifice column of gridview.. but its not working please tell me were i am missing...
function ManipulateGrid()
{
var gvDrv = document.getElementById("<%= GridView1.ClientID %>");
var gt=0.0;
for (i=1; i<gvDrv.rows.length; i++)
{
var cell = gvDrv.rows[i].cells;
var valold = cell[7].innerHTML;
var val = 0.0;
if(isNaN(parseFloat(valold)))
{
val=0.0;
else
val =valold;
}
gt = parseFloat (gt) + val;
}
alert(gt);
}