Start Formview itemupdating newvalues

Formview itemupdating newvalues

So, we call Databind() method in the Page Index Changed event handler and then retrieve the datakey value as shown in the code given below.

I'm new at this and I'm sure I'm overlooking something simple here.

Lasty, the select query of the object datasource is a stored procedure that performs several joins based on PF/FK relationships to bring back more meaningful information than just a FK, so some columns are just the joined value, and can not be updated directly.

Again, formview is trying to pass these parameters So given that, I have defined the following even handler for a simple form view: (not sure if this is the way to proceed given the above, but...) protected void Form View1_Item Updating(object sender, Form View Update Event Args e) My questions are as follows: 1) Is this the right approach?

The way to keep things synchronized, therefore, is to force Grid View to refresh its data source any time a detail record is updated -- easy to arrange, because the Details View control posts an Item Updated event each time an update is processed.

The Edit Item Template will contain Text Box controls by default.

The stored procedure on the backend takes care of this, and these are not parameters for the Update method.

The Form View by default is trying to pass all these values back to the database.

I need to do a custom update for a form view (I think/know), as some of the parameters that are required for updating values should not be updated by the users, such as userid of the person performing the action which is passed back to the database for auditing purposes.