Hi,
This is working with VB because in VB implicit conversion exists.
But in case of C#, you need to provide type cast information.
In C#, There is no implicit conversion.
Try this code
DataSet oDs = (DataSet)GridView1.DataSource;
It might help you.
Regards
AR