Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a new requirement in my project where I am supposed to add multiple rows(every row would contain three textbox) on click of a button.

And upon clicking SAVE button all the values in textboxes should be saved on a table.

Please help me how to achieve this.
Posted
Updated 6-Oct-15 2:26am
v2
Comments
Member 12003400 6-Oct-15 9:12am    
Take a gridview with 3 item template,,having text box and bind with data table..On button click add row in datatable with empty text,,which will add a row in gridview.
Member 10707893 7-Oct-15 9:44am    
pass the count and that many times do the iteration of for loop. and inside loop every time create the object of TextBox

1 solution

Please refer: Dynamically creating rows of textboxes[^]

Hope this helps you getting started!
 
Share this answer
 
Comments
Maciej Los 9-Oct-15 1:41am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900