Function GetAmount (Column)
{
VAR DT = Document.All.dataGrid1 // Find your grid on the client's Table
VAR sum = 0;
For (VAR i = 1; i
{
Var obj = dt.rows (i) .Cells (colorn) .childNodes (0);
VAR TD = DT.ROWS (i) .Cells (Column);
Switch (obj.tagname) {
Case "Input":
SUM = PARSEFLOAT (OBJ.VALUE);
Break;
Case "SELECT":
//parsefloat(obj.Options [obj.selectedIndex].text);
SUM = PARSEFLOAT (Parsefloat (Obj.Options [obj.selectedIndex] .value);
Break;
DEFAULT:
SUM = PARSEFLOAT (TD.INNERTEXT);
Break;
}
Td.Style.BackgroundColor = "# f8f8f8";
//td.style.display="none "; // hide
//obj.disabled=true; // disable
}
Alert (SUM); // This is the result of the joint
}
// ->
Script>