Detailsview itemupdating newvalues

If I want to add an additional Parameter to the be used in the Updat Method of my Object Data Source, then I'd use the Updating event handler.If a post helps me I'll always eventually mark it as an answer. Grid View Update w/ Object Data Source: Getting a reference to updating object?It's funny you mention the current user since that's exactly what I want to do.But speaking in general, also since the old values would be part of the actual parameters that will be passed to the Update Method, does this mean I have access to the old and new values in the Object Data Source. Is the purpose to allow different controls bound to the same datasource to do different things?We will bound a Details View control to a Sql Data Source for simplicity reason you can use any data source control ... After configuring the pet Shop Sql Data Source and enable update, insert and delete we set the Details View Data Source Id to our pet Shop Sql Data Source Id and so the Details View now have 3 fields bound to Category table.To clarify this take a look into what's happen on the Item Updating event, if we checked the e. Keys collection before we set the Name filed as read-only filed we will find that this collection contains two Items: The Details View will not pass the read-only fields to the underlying data source and this is not an issue Details View designed like this.The Details View control allows you to edit, delete, and insert records.In this post I will explain an issue related with Read-only data fields.

It will be easy to reply if we could see the code... Is it better to use the Object Data Source or just bind the class to the Grid View Johan Theunissen MCPD, MCSE, MCTS Biz Talk 2006==============================Please mark the most helpful reply/replies as "Answer". Datasource (row.editing and paging errors) vs Object Data Source Hi Guys, I have a self-made data table as the data source for my gridviewand struggle to get row editing and paging to work:1. Can I bind a gridview inside a gridview to a sublist of objects inside the main gridviews datasource? Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms. Note: I´m not using a datasource component in my application (Sql Data Source, Object Data Source, Entity Data Source, etc.). I´m using a Details View but when updating, I cannot get the Old Values because the Details View Update Event Args. This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.

Leave a Reply