title: TextBox inside a GridView
body: <p>I want to get the Text property from a TextBox that is inside a GridView. This TextBox has some data that come from my database. When I change this data, I wanna do a Update in my database. </p>
  
  <p>But when I search for the Text of my TextBox, he get the old value that come from my database and not the value that I put now.</p>
  
  <p>How can I do, to get my actual data that I write in my TextBox and not that come from my databse ?</p>
  
  <pre><code>protected void VerifyPriority()
  {
      for (int i = 0; i &lt; GridView1.Rows.Count; i++)
      {
          GridViewRow RowView = (GridViewRow)GridView1.Rows[i];
          TextBox txt = (TextBox)GridView1.Rows[i].FindControl("txtPriority");
  
          if (txt != null)
          {
              if (txt.Text != this.changes[i])
              {
                  this.UpdatePriority(this.codigo[i], txt.Text);
              }
          }
      }
  }
  </code></pre>