Copying data from Gridview

Jymoz's Avatar, Join Date: Aug 2011
Newbie Member
I have an ASP.NET page with a C# code behind and i'm working a lot with gridviews to display data.

I have one that displays tasks for the current date and with checkboxes that allows the user to select multiple rows. I'm looking into a way that would allow the users to select tasks in the gridview, select a date from a drop down and press a button to copy all the data from the rows and insert it back into the database but with the date selected.

I know that it'll be a simple insert statement triggered by the button. But i dont know how to get the data from the rows selected in the grid view and put them in the new insert statement. Can anyone help?
alia123's Avatar, Join Date: Jan 2016
Hey, check this link " "you will get the data in this.

Good Luck.