</ItemTemplate>
</ASP:TemplateColumn>
<ASP:TemplateColumn HeaderText="单价">
<ItemTemplate>
<ASP:TextBox id="DanJian" runat=’server’ Text=’<%# DataBinder.Eval(Container.DataItem,"DG_DanJian")%>’
onkeyup="Javascript:DoCal()"
/>
<ASP:RegularEXPressionValidator id="revS2" runat="server" ControlToValidate="DanJian" ErrorMessage="must be numeric" ValidationEXPression="^\d+(\.\d*)?$" />
</ItemTemplate>
</ASP:TemplateColumn>
<ASP:TemplateColumn HeaderText="金额">
<ItemTemplate>
<ASP:TextBox id="JinE" runat=’server’ Text=’<%# DataBinder.Eval(Container.DataItem,"DG_JinE")%>’ />
</ItemTemplate>
</ASP:TemplateColumn><script language="Javascript">
function DoCal()
{
var e = event.srcElement;
var row = e.parentNode.parentNode;
var txts = row.all.tags("INPUT");
if (!txts.length txts.length < 3)
return;
var q = txts[txts.length-3].value;
</ASP:TemplateColumn>
<ASP:TemplateColumn HeaderText="单价">
<ItemTemplate>
<ASP:TextBox id="DanJian" runat=’server’ Text=’<%# DataBinder.Eval(Container.DataItem,"DG_DanJian")%>’
onkeyup="Javascript:DoCal()"
/>
<ASP:RegularEXPressionValidator id="revS2" runat="server" ControlToValidate="DanJian" ErrorMessage="must be numeric" ValidationEXPression="^\d+(\.\d*)?$" />
</ItemTemplate>
</ASP:TemplateColumn>
<ASP:TemplateColumn HeaderText="金额">
<ItemTemplate>
<ASP:TextBox id="JinE" runat=’server’ Text=’<%# DataBinder.Eval(Container.DataItem,"DG_JinE")%>’ />
</ItemTemplate>
</ASP:TemplateColumn><script language="Javascript">
function DoCal()
{
var e = event.srcElement;
var row = e.parentNode.parentNode;
var txts = row.all.tags("INPUT");
if (!txts.length txts.length < 3)
return;
var q = txts[txts.length-3].value;