saving gridView selected reords in DataSet

my problem is now that how to save selected items(records) of gridView in dataset.and then again i have to put that dataset in session.and on cleck even i have to call dataset which is in session.lets i have one dataset named datasetOne .i am using this dataset for binding gridView .again user selects some reocords using check box in gridview and clicks on save button .then i need all selected records should be save in newly created dataset lets i have here all selected records should save in datasetTwo with its respective feilds(columns) value.and finally i will have to retrive session dataset's value on click button to do it?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

all you need is to cast the DataSource of the GridView to a DataSet then use it in anyway you want

DataSet FilteredDataSet=((DataSet)GridView1.DataSource);

Good luck
ajay1febAuthor Commented:
just tell me how to store checked items data of gridview in in your FilterDataSet.
as I said in my previous post if you have a dataset as the datasource of the GridView control and need to move that to a different dataset then just do this
DataSet FilteredDataSet=((DataSet)GridView1.DataSource); //This is assuming your GridView is called GridView1
after this code is executed FilteredDataSet will hold whatever data is held in the GridView control

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Forced accept.

EE Admin
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.