Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 19, 2013 02:19 AM by Decker Dong - MSFT
Jan 17, 2013 03:17 PM|LINK
I have a gridview with existing records displaying fine. I'd like to have a control field that would allow me to "clone" this record only with a new record ID number chosen of course by my SQL Server's table's identity key field. Is this possible?
Jan 18, 2013 11:13 PM|LINK
Get the id of the record you want to copy from the grid, make a call to the db, create a new record, copy the fields and insert the new record in the db with a new id of course.
Jan 19, 2013 02:19 AM|LINK
If you do manually data-binding. Just handle the event of GridView's SelectIndexChanged，and then do this：
DataTable.Rows[index][index]——Copy the value one column by one column, to where you think suitable.