By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,869 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,869 IT Pros & Developers. It's quick & easy.

GridView update with ObjectDataSource

P: n/a
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
Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.