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?

Re: Cast from untyped to typed DataRow by W

W
Sat Mar 12 15:42:38 CST 2005

Can you show me your code?

--
W.G. Ryan MVP (Windows Embedded)

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"razdanro" <razdanro@discussions.microsoft.com> wrote in message
news:6A6641BA-05C2-4107-8F62-1847DD7F05BE@microsoft.com...
> 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?
>
>



Re: Cast from untyped to typed DataRow by razdanro

razdanro
Mon Mar 14 01:31:03 CST 2005

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

"W.G. Ryan eMVP" wrote:

> Can you show me your code?
>
> --
> W.G. Ryan MVP (Windows Embedded)
>
> TiBA Solutions
> www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> "razdanro" <razdanro@discussions.microsoft.com> wrote in message
> news:6A6641BA-05C2-4107-8F62-1847DD7F05BE@microsoft.com...
> > 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?
> >
> >
>
>
>

Re: Cast from untyped to typed DataRow by %u

%u
Wed Mar 23 09:51:56 CST 2005

Did you get answer to your question?
--
POST BY: http://www.dotNET.us - Need .NET? Just ask, Please dotNET.us