Sivajihero Hero

Sivajihero Hero

  • NA
  • 105
  • 32.2k

Problem in multplying two columns in gridview in aspnet

Sep 30 2015 4:10 AM
I have a gridview for my web application in which there is quantity and unit price column and total column. If I type quantity and unit price then I want to display the total price automatically in next column. But for my current coding it will display only after the page reload by I clicking on the add button only. I need to display the total amount automatically when I move to the Total column. This is my current code.
 
<ItemTemplate>
 
<asp:TextBox ID="txttotal" runat="server" Text='<%# Convert.ToInt32(Eval("Qty")) * Convert.ToInt32(Eval("Uprice"))%>'
                            AutoPostBack="True"></asp:TextBox>
 
</ItemTemplate>
 
 

Answers (6)