Hi,
I am adding a blank row to gridview in asp.net at button click.. This row i am adding to a datatable. Is it possible to add the whole row to table at one go.If yes, how to do that?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
B M SuchitraPosted Oct 4, 2011, 4:54 AM
As i have told in the post, i am adding blank rows to gridview at button click event.. The data entered in the rows need to be added to database..
Amit ChoudharyPosted Oct 4, 2011, 2:11 AM
DataTable myTable= GridView1.DataSource;
try this I hope this would add all the newly added rows in one go.
Else you have to create individual row from GridViews rows and then add one by one to Datatable.