No parameterless constructor defined for this object

Nov 16, 2010 at 7:08 AM

The Error follows when doing the following:

dtAll = mLayer.DataSet.GetAttributes(0, mLayer.DataSet.NumRows, tasks.fields)

Then making a copy/clone of that Datatable: 

dtCopy = dtAll.Copy


dtUnique = dtAll.DefaultView.ToTable(True, fieldName)

I had to write functions like CreateTable (It creates a new Datatable and populates the data) and SelectDistinct to get it working.