title: how to multiply a GrideView column with a TextBox
body: <p>I have GridView with some data:</p>
  
  <pre><code>&lt;asp:GridView ID="gvSelected" runat="server" 
  AutoGenerateColumns = "False" Font-Names = "Arial" 
  EmptyDataText = "No Records Selected"&gt;
  &lt;Columns&gt;
    &lt;asp:BoundField DataField = "ID" HeaderText = "ID" /&gt;
    &lt;asp:BoundField DataField = "Name" HeaderText = "Name" /&gt;
    &lt;asp:BoundField DataField = "Desc" HeaderText = "Description" /&gt;
    &lt;asp:BoundField DataField = "Price" HeaderText = "Price" /&gt;
    &lt;asp:TemplateField&gt;
  &lt;ItemTemplate&gt;
     &lt;asp:TextBox ID="txtAmount" runat="server" Text="0"
                 OnTextChanged="txtAmount_TextChanged" AutoPostBack="true"&gt;
    &lt;/asp:TextBox&gt; 
  &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  &lt;asp:TemplateField&gt;
  &lt;ItemTemplate&gt;
     &lt;asp:Label ID="lblResult" Text="0"  runat="server" /&gt; 
  &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  &lt;/Columns&gt;
  &lt;HeaderStyle BackColor="Green"&gt;&lt;/HeaderStyle&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Want to multiply "Price" with some Amount from the TextBox, and the result be display in the column with the label (lblResult). Am trying wtih txtAmount_TextChanged code now, before with many variations, but no result so far... Any suggestions !?</p>
  
  <pre><code>protected void txtAmount_TextChanged(object sender, EventArgs e)  
      {
            TextBox amount= (TextBox)gvSelected.FindControl("txtAmount");
            Label result = (Label)gvSelected.FindControl("lblResult");
            score.Text = ((Convert.ToInt32(row)) * Convert.ToInt32(amount.Text)).ToString();
       }
  </code></pre>