DetailsView & ObjectDataSource Update method

M

Matt

Do all the fields in the DetailsView need to be marked visible in order
to be passed to the Update or Delete methods of the ObjectDataSource?

I have a custom business object that has properties ApplicationId(Guid)
and Timestamp(timestamp). I don't want the users to see these fields
but they are required for the Update and Delete methods of the
underlying custom data access object that gets called.

If I mark these fields visible it works? Any thoughts?

Thanks ~ Matt
 
M

Matt

Found the answer:

If the Visible property of a row field is set to false, the row is not
displayed in the DetailsView control and the data for the row does not
make a round trip to the client. If you want the data for a row that is
not visible to make a round trip, add the field name to the
DataKeyNames property.
 

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,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top