I have a gridview and a "button" control, when i click on the button, i want to add new row to a gridview. the gridview got 3 columns. Inside the 1st column is label, 2nd column is textbox and the 3rd column is also a textbox.
I want added new row where each of column have textbox in it. So when i click the submit form button, i will read the gridview record, and pump into the database.
It would be more appreciated if the code is writen in vb code behind. Most of the sample on the internet all writen in javascript, and the control is not gridview.
kiddoo_81
Member
54 Points
38 Posts
How to add new row to gridview using code behind
Feb 12, 2009 06:03 AM|LINK
Hi,
I have a gridview and a "button" control, when i click on the button, i want to add new row to a gridview. the gridview got 3 columns. Inside the 1st column is label, 2nd column is textbox and the 3rd column is also a textbox.
I want added new row where each of column have textbox in it. So when i click the submit form button, i will read the gridview record, and pump into the database.
It would be more appreciated if the code is writen in vb code behind. Most of the sample on the internet all writen in javascript, and the control is not gridview.
Best Regards.
vincent.