Discussion:
[Python.NET] Python.Net and DataRow
Alexander Mail
2009-08-13 13:15:25 UTC
Permalink
Hi,
I'm new in Python.Net programming. I try to build a simple project
that use DataSet/DataTable/DataRow.
But when I add a DataRow with this code:

mydatar = DataRow()

I get this error:

no constructor matches given arguments.

Any ideas?

Thanks

Marco


_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet
Tribble, Brett
2009-08-14 02:00:03 UTC
Permalink
Can you use this instead?

from System.Data import DataTable, DataRow
ttable = DataTable()
mydatar = ttable.NewRow()




-----Original Message-----
From: pythondotnet-bounces+btribble=maxis.com-+ZN9ApsXKcEdnm+***@public.gmane.org [mailto:pythondotnet-bounces+btribble=maxis.com-+ZN9ApsXKcEdnm+***@public.gmane.org] On Behalf Of Alexander Mail
Sent: Thursday, August 13, 2009 6:15 AM
To: pythondotnet-+ZN9ApsXKcEdnm+***@public.gmane.org
Subject: [Python.NET] Python.Net and DataRow

Hi,
I'm new in Python.Net programming. I try to build a simple project
that use DataSet/DataTable/DataRow.
But when I add a DataRow with this code:

mydatar = DataRow()

I get this error:

no constructor matches given arguments.

Any ideas?

Thanks

Marco


_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet

_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet

Loading...