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
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