Dhananjayan P

Dhananjayan P

  • NA
  • 75
  • 7.6k

javascript multiplication in Gridview column

Aug 24 2013 7:41 AM
Hai in my gridview i am having three columns Price,Quantity,Total Price, Price and TotalPrice are label and Quantity is the TextBox,now i need to total Price =Price*Quantity in Jquery or java script Please Help Me: Below is my code


<asp:GridView ID="GRVItem" DataKeyNames="ItemCode,ItemName" runat="server" Font-Names="Calibri" Font-Size="11pt" AlternatingRowStyle-BackColor="#C2D69B" AllowPaging="True" PageSize="5" ShowHeader="true" CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" Width="1000px" padding-top=" 70px;" AutoGenerateColumns="false"> <HeaderStyle BorderColor="Gray" BorderStyle="Solid" Font-Bold="true" BackColor="#76C3FD" /> <Columns> <asp:BoundField HeaderText="Price" DataField="AvgPrice" ReadOnly="true" /> <asp:TemplateField HeaderText="Quantity"> <ItemStyle HorizontalAlign="center" Width="13%" /> <HeaderStyle HorizontalAlign="center" /> <ItemTemplate> <asp:TextBox ID="txtQuantity" runat="server" Width="50%"/> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Total Price"> <ItemStyle HorizontalAlign="center" Width="13%" /> <HeaderStyle HorizontalAlign="center" /> <ItemTemplate> <asp:Label runat="server" ID="lbltotPrice"></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>

Answers (1)