Detailsview itemupdating

I set up a quick test which I think is similar to yours.One complication I see is some of the built in functionality of the Details View.Find Control("edit Address Text Box") Dim new City Text Box As Text Box = _ employee Details.

detailsview itemupdating-55detailsview itemupdating-67

Hi All, When I use the e.cancel=true in the item updating event it cancels the update which I want.

But it also returns the original values which I do not want. Thanks When you cancel the Updating event, the Details View is left in edit mode and the values you entered are not changed. If you want to manipulate the values in the Details View you can iterate through the Rows collection (one row for each field displayed), and then the Cells collection (two cells: the header, the value). I would report this as a bug at the MSDN Feedback centre (https://connect.microsoft.com/feedback/).

Header Text on the fields is one of those properties.

If the control didn’t rebind, setting the Header Text to anything (even “Wibble”) wouldn’t do anything until you call Data Bind explicitly.

In this section, we’ll learn about the events raised by these controls.

Last modified 14-Jan-2020 03:55