Detailsview 1 itemupdating

NET autogenerate | an update button, and then press update after making changes, but I don't | want that update button.

detailsview 1 itemupdating-56detailsview 1 itemupdating-25detailsview 1 itemupdating-87

NET autogenerate an update button, and then press update after making changes, but I don't want that update button. NET 2.0's Details View control , based on my research, after we perform Data Binding on the Details View, all the datas from Data Source are persisted in the Details View through View State, and they're not directly exposed to us.

How can I get the updated object when the user presses one of my other action buttons? Currently if we need to retrieve the Old Values and New Values and key values from the paramters collection ,the best means is utilize the details View's buildin Updating command.

If Auto Generate Rows is true, then the order of the fields seems random and thus how could they be mapped to each dvr. This is still easier than a UI that uses no data binding at all, but it seems like it would have been pretty easy for MS to have eliminated the need to write and maintain these additional 40 lines of code.

"Steven Cheng[MSFT]" wrote: Thanks for your response Jim, Yes ,the Date Item is used during the Data Binding period, after that , in the sequential page reuqest, it's null. Text which stored the current record's certain fields values.

| | | "Steven Cheng[MSFT]" wrote: | | It looks like I will not be able to escape at least one line of code per field to manually construct a data object in a button click handler. If I ever had to add a property to my data object, the UI would automatically work.

I wanted to set Default Mode to Edit and set Auto Generate Rows to true. Whether Auto Generate Rows is true or whether it is false and I use asp: Bound Field, if Default Mode is Edit then dvr. But if I am not creating a simple CRUD application and I want a separate button that does some action other than update, I must also create 20 template fields and 20 lines using Find Control.

Thanks, Steven Cheng Microsoft Online Support Get Secure! TK2MSFTNGXA03gbl | Xref: TK2MSFTNGXA01gbl microsoft.public.dotnet.framework.aspnet:128896 | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet | | I am passing the whole object instead or parameters in my select and update | methods.

(This posting is provided "AS IS", with no warranties, and confers no rights.) -------------------- | Thread-Topic: Details View and Object Data Source - how to get updated object | thread-index: Ac XI V3y M7Jnzt0DTLa RAv FSe Syfu Q== | X-WBNR-Posting-Host: 209.137.235.2 | From: "=? | | I can get the updated object if I set Update Method, let ASP.

In other word, we also need to use Find Control in such scenario. Thanks, Steven Cheng Microsoft Online Support Get Secure! TK2MSFTNGXA03gbl | Xref: TK2MSFTNGXA02gbl microsoft.public.dotnet.framework.aspnet:349765 | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet | | Calling Data View1.

And currently the best choice is still utilizing the buildin updating /updated events of the control. -------------------- | Thread-Topic: Details View and Object Data Source - how to get updated object | thread-index: Ac XNxzuppqkjo Bg/TQ c Rz v5s T3OA== | X-WBNR-Posting-Host: 209.137.235.2 | From: "=? Update Item(false) in a button click handler does cause the | data object's update method to be called; however, the properties of data | object passed to the update method do not contain the current values on the | screen.

So for your scenario, I think we can set the Details View's default mode to edit, use autogeneratedrows , then we can call Details View. US, VS.80)BTW, as for the the limitation you mentioned, I do agree that some of them are reasonable such as make programmatical update/edit... If using the buildin update command of the datasource is ok, you can ignore the itemupdating event.