G
Guest
I need to put the Data Source of a DataGrid into a DataSet variable. I have
tried the follwoing code but I get and error:
DataSet ds = (DataSet)Convert.ChangeType(this.dgChgMgmt.DataSource,
typeof(DataSet));
The error is:
A first chance exception of type 'System.InvalidCastException' occurred in
mscorlib.dll
How can I fix this? I am using Framework 1.1.
tried the follwoing code but I get and error:
DataSet ds = (DataSet)Convert.ChangeType(this.dgChgMgmt.DataSource,
typeof(DataSet));
The error is:
A first chance exception of type 'System.InvalidCastException' occurred in
mscorlib.dll
How can I fix this? I am using Framework 1.1.