title: calling gridview textbox textchanged event from a function from code behind as well as aspx code
body: <p>I have a text box inside gridview.I have already written some code inside its <code>textchanged event</code> as given.</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="AdjAMT" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center"&gt;
      &lt;ItemTemplate&gt;
      &lt;asp:TextBox ID="grdAdjAMT" runat="server" AutoPostBack="true" Text='&lt;%#Eval("ADJAMT") %&gt;'  OnTextChanged="grdAdjAMT_TextChanged"&gt;&lt;/asp:TextBox&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>What i want is to dynamicaly add a textchanged event for the same textbox from code behind also which is called from inside of a function .The code for both the textchanged events is the same.the code is as follows
  Below text changed event is defined in axpx code as given above:</p>
  
  <pre><code> protected void grdAdjAMT_TextChanged(object sender, EventArgs e)
      {
      }
  </code></pre>
  
  <p>Given below is the function from which i want to call the dynamicaly added text <code>changed event</code></p>
  
  <pre><code>protected void txtAmount_TextChanged(object sender, EventArgs e)
      {
          AdjustAmt();
      }
      private void AdjustAmt()
      {
         TextBox grddynAdjAMT = (TextBox)row.FindControl("grdAdjAMT");
       grddynAdjAMT.TextChanged += grddynAdjAMT_TextChanged;
       }
      void grddynAdjAMT_TextChanged(object sender, EventArgs e)
      {
              //my code
       }
  </code></pre>
  
  <p>Can i use only one textchanged event?
  thanks in advance</p>