Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   Copying data from Gridview (http://www.go4expert.com/forums/copying-data-gridview-t26531/)

Jymoz 19Aug2011 18:37

Copying data from Gridview
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?

All times are GMT +5.5. The time now is 04:20.