I am binding the grid view using data table.
My task is to add new rows to my grid view dynamically when the user clicks “ADD” button in grid view it should generate new row with three text boxes.
For example: When I click the add button in the second row, a new row should be created below the second row with three text box where the user can enter details.
Can anybody help me resolve this problem? Either in jQuery/JavaScript or on the server side.
you could try this solution
inside code behind
Here’s the code block below:
in page load you have to call this method
this is the method for generating the rows when clicking the Button. Here are the code blocks below:
this is setpreviousdata method…
button click event for adding new row
and pls take a look below image how it will generate new rows….
I hope it will helps you…..