How to Assign a datarow object in .NET 1.1

Posted by dotnet-practitioner on Stack Overflow See other posts from Stack Overflow or by dotnet-practitioner
Published on 2010-03-16T18:33:36Z Indexed on 2010/03/16 19:21 UTC
Read the original article Hit count: 253

Filed under:
|
|

currently I am doing this...

object s = new object();
s = mydatarow["mycolumn"];

What I would like to do is...

DataRow r = null;
r = mydatarow["mycolumn"];

and I get an error saying that can not covert from object to DataRow.

is there a better way of doing this?

© Stack Overflow or respective owner

Related posts about datarow

Related posts about .net-1.1