Cast from untyped to typed DataRow

G

Guest

I have a typed DataSet and I execute the Select Methd on one of the DataTables.
Later I have to assign the first row returned by this Select (which is a
plain, untyped DataRow) to a typed DataRow variable. I use cast, but it fails
at runtime: "Specified cast is not valid".Is there any way around? Am I doing
something wrong?
 
G

Guest

I solved the problem. I was actually casting to a Row from another table in
the DataSet. Sorry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top