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,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top