Click here to Skip to main content
15,915,000 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
I have made a Win form It contains some text box fields and a button.The problem is that, How to dynamically add rows in the datatable in each button click
Posted

Are you talking about a data table in database. On the button click event, write some code to collect the values from your textboxes and insert the value to your table using ado.net.
 
Share this answer
 
Hi, Take a look at this one it contains many things related to DataTable... DataTable - Adding, Modifying, Deleting, Filtering, Sorting rows & Reading/Writing from/to Xml[^]
 
Share this answer
 

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