zSynopsis
zSynopsis

Reputation: 4854

Moving Selected rows Between Gridviews

I currently have Gridview1 which gets it's data from a database and displays a list of people.I also have a Gridview2 which is initially blank. I would like to add the functionality of adding/removing rows to gridview2 from gridview1. I've added a checkbox column to gridview1 to allow users to select the records they'd like to move. I've also added two buttons >> and <<. Does anyone have an example of how i can add/remove selected records from Gridview1 to Gridview2?

thanks in advance!

Upvotes: 0

Views: 964

Answers (1)

Glennular
Glennular

Reputation: 18215

 Gridview2.rows.add(Gridview1.rows[INDEXTOMOVE]);

Upvotes: 1

Related Questions