开发者

Add rows dynamically to gridview

开发者 https://www.devze.com 2023-03-20 17:20 出处:网络
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 col

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 c开发者_JAVA百科ontains 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?


check out below links, hope it will solve your issue.

http://geekswithblogs.net/dotNETvinz/archive/2009/06/04/adding-dynamic-rows-in-gridview-with-textboxes.aspx

http://www.aspsnippets.com/Articles/Adding-Dynamic-Rows-in-ASP.Net-GridView-Control-with-TextBoxes.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消