title: Dynamically add rows to GridView which contain web controls in ASP.NET
body: <p>Hi I'm having a great issue because I don't know where to start. I need to create a Gridview which has to buttons below it, a "Create Row" button and a "Delete Row" button. I want that everytime the "Create Row" button is pressed a new row to be added to the GridView, however the main problem is that I need that new row to be filled with different controls such as DropDownLists and TextBox, but I have no idea of how to do it properly. Here is an image of how I want the GridView to be: </p>
  
  <blockquote>
    <p>Each row has 2 dropdown lists, two textbox and a button
    <a href="https://i.stack.imgur.com/E2CBt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E2CBt.png" alt="enter image description here"></a></p>
  </blockquote>
  
  <p>I know that I need to bind the GridView to a data source such as a dataTable, but I have no idea if that will work with controls such as TextBox or DropDownLists. Sorry if I don't add any code because I really don't know where to start. Thank you.</p>