ObjectDataSource and the DataRow

F

Fernik

Redmond, I have a problem!!!


I have BusinessObject defined in the ObjectDataSource, who has a
function that accepts a single record object (a DataRow) as the Update
function. However when I want to update the changes in the GridView,
and click the update button I get the error message "No parameterless
constructor defined for this object", which is due to because the typed
DataRow I use does not have a default public constructor. I did try to
manually add a public default constructor to the typed dataset but it
is pointless since the typed DataRow inherits from DataRow, which also
does not have a neither a public or default constructor. So, how do I
solve this problem of updating the data from the GridView on a typed
DataRow, so that I can then passed that DataRow to the business object
?

Note: I am using DataSets in a 3 layers applicaiton architecture.


Fernik
 
J

jason.cclaw

May I know you guys had solved the issue ? I have the same problem as
well...


I have the same problem as well
 

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

Members online

No members online now.

Forum statistics

Threads
473,800
Messages
2,569,657
Members
45,415
Latest member
KarolDicke
Top