title: Adding textbox to the gridview
body: <p>I have a gridview and in the gridview i want to add textboxes in the first row dynamically(for search). But I get an error saying expected type is INT32.</p>
  
  <pre><code>        DataRow dr = dt.NewRow();
          for (int i = 0; i &lt; gridview1.Columns.Count; i++)
          {
              TableHeaderCell cell = new TableHeaderCell();
              TextBox tb1 = new TextBox();
              tb1.Attributes["placeholder"] = gridview1.Columns[i].HeaderText;
              tb1.CssClass = "search_textbox";
              if (i != 0)
              {
                  cell.Controls.Add(tb1);
  
              }
              dr[i] = cell;                
          }
  
          dt.Rows.InsertAt(dr, 1);
          gridview1.DataSource = dt;
          gridview1.DataBind();
  </code></pre>
  
  <p>Can anyone please guide me, how to add a textbox to the first row in the gridview ?</p>