GridView update with ObjectDataSource

D

Danny W

Hi all,

I'm trying to update a record using ObjectDataSource but got the following
error:

The 'PhotoCount' property on the type specified by the DataObjectTypeName
property in ObjectDataSource 'odsAlbums' is readonly and its value cannot be
set.

PhotoCount is a readonly property in my object and I've already set it to be
readonly in the gridview. Surely GridView or ObjectDataSource is smart
enought not to update a readonly property?? Or do I have to do this by code?

Cheers,

Danny
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top