This is my code.
GridView1.DataSource = Session["Seats"];
DataSet ds3 = new DataSet();
ds3 = (DataSet)GridView1.DataSource;
When I am trying to convert gridview to dataset I got one error .
i.e
Unable to cast object of type 'System.Collections.Generic.List`1[System.String]' to type 'System.Data.DataSet'.
How to solve this problem.
Conversion problem
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sam HobbsRank #107 · 20.5K reputationPosted May 29, 2011, 1:24 AM EDT
What is it that you are trying to do? Why do you need to do that conversion?
Also note that there are many great articles in this web site that can help you.
VulpesRank #55 · 29.2K reputationPosted May 29, 2011, 9:37 AM EDT