简体   繁体   中英

Add rows dynamically to gridview

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?

Any help would be appreciated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM