Cannot implicitly convert type 'System.Data.DataSet'

Posted by mhtan88 on 10-Nov-2009 21:41

hi all,

May I know how if i really wan to convert from StrongTypeNS to system.data.dataset?

Thank you.

Regards,

TAnMH

All Replies

Posted by jquerijero on 16-Nov-2009 11:09

StrongName DataSet to DataSet doesn't need conversion just a direct assignment.

From DataSet to StrongName DataSet is different, if the DataSet already contains StrongName DataSet through assignment or parameter passing, you can CAST it back to the the StrongName DataSet. If the DataSet does contain a DataSet (ex. ds = NEW DataSet().), you  will need to programatically create the StrongName DataSet.

Posted by mhtan88 on 16-Nov-2009 18:47

thank you joseph.

I found the solution something like this. because my problem is :

strongtypens dataset = system.dataset ds  will said both are different structure.

therefore, i changed from output / input static dataset changed to dynamic output/input dataset  then problem solved already.

Thank you.

Regards,

TanMH

This thread is closed