Hi
How to append data in existing Gridview. I have already data in gridview
Thanks
Hi
How to append data in existing Gridview. I have already data in gridview
Thanks
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.
Naimish MakwanaPosted Apr 26, 2023, 8:35 AM
To append data in an existing
GridViewcontrol in ASP.NET, you can follow these steps:Get the data you want to append to the
GridView. This could be a single row or multiple rows of data.Create a new
DataTableobject and add the columns that match the columns in yourGridView.Add the new data to the
DataTableobject as rows.Merge the new
DataTablewith the existingDataTableof theGridView.Bind the merged
DataTableto theGridView.Example: