DataRow "inaccessible due to its protection level"

E

Earl

What am I doing wrong here?

DataRow drNew = new DataRow();
gives me an exception: "inaccessible due to its protection level"

The equivalent code in VB.Net executes fine.
 
C

Cor Ligthert [MVP]

Earl,

What version of VB.Net

In my idea it is impossible as you write because in this way the datarow has
not any information at all where it has to get its column descriptions.
(That is why a datarow is forever connected to a datatable).

Cor
 

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