C# – Add rows dynamically to gridview

asp.netcdrop-down-menugridview

I have a gridview and I want to add rows in it dynamically. I have a dropdown list and it has values through 2 to 12. 2 is selected by default and gridview has two rows in it. And 3 columns. First column contains count, second contains a textbox and third also contain a text box.

What I want is, when user change ddl value, suppose from 2 to 3, a new row with same data must be added to gridview. How can I achieve this?

Related Topic