Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying to make an order form. when a code is selected from drop down list in grid view then it automatically show Name and Price in label. But when a value is given in the Quantity text box it does not work. All data come from a different table. My grid view is look like...
ASP.NET
<asp:GridView ID="GridView1" runat="server">
    <columns>
         <asp:TemplateField HeaderText="Code" >
             <itemtemplate>
                 <asp:DropDownList ID="ddlCode" runat="server">
             </itemtemplate>                                                                      
          
        <asp:TemplateField HeaderText="Name" >
             <itemtemplate>
                 <asp:Label ID="lblName" runat="server" />    
             </itemtemplate>                                                                      
          
        <asp:TemplateField HeaderText="Price" >
             <itemtemplate>
                 <asp:Label ID="lblPrice" runat="server" />    
             </itemtemplate>                                                                      
          
        <asp:TemplateField HeaderText="Quantity" >
             <itemtemplate>
                 <asp:TextBox ID="txtQuantity" runat="server">
             </itemtemplate>                                                                      
    </columns>

How do I calculate Total and all rows Total ?
Posted
v4
Comments
Not clear. Please explain more with some codes.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900