Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > GridView update with ObjectDataSource

Thread Tools

GridView update with ObjectDataSource

Danny W
Posts: n/a
Hi all,

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

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

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?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView update using ObjectDataSource Steve Kershaw ASP .Net 1 09-11-2007 02:15 PM
Gridview Update via ObjectDataSource Issue ASP .Net 6 08-22-2007 09:15 PM
Gridview and ObjectDataSource with Custom object : update problem Olivier Matrot ASP .Net 2 10-02-2006 02:59 AM
GridView, ObjectDataSource, Update problems. Chris Szabo ASP .Net Web Controls 2 07-25-2006 06:36 PM
ObjectDataSource & GridView: Can't update when PK is readonly Raja ASP .Net 1 06-07-2006 03:40 PM