title: How to add dynamic Texbox in GridView at RunTime?
body: <p>I would like to add controls like textBox in GridView from code on the fly.</p>
  
  <p>In my project i have one Grid in that i can't decide how many rows and columns are there. so that i just give it DataSource. This working fine. </p>
  
  <pre><code>GridView G = new GridView();
  G.DataSourse = dt;
  G.DataBind();
  </code></pre>
  
  <p>now i want to do such thing that in <code>Gridview</code> all the controls are <code>Textbox</code> control so that i can write in that textbox.</p>
  
  <pre><code>TextBox t= new TextBox();
  G.Contorls.Add(t);
  </code></pre>
  
  <p>This will throw exception...</p>
  
  <p>do anyone have any idea about this???</p>
  
  <p>Thanks in advance..</p>
  
  <p>Regards
  Amit Vyas</p>