View. Update Item(Boolean) Method
Updates the current record in the data source.
public: virtual void UpdateItem(bool causesValidation);
public virtual void UpdateItem (bool causesValidation);
abstract member UpdateItem : bool -> unit override this.UpdateItem : bool -> unit
Public Overridable Sub UpdateItem (causesValidation As Boolean)
true to perform page validation when the method is called; otherwise,
This method is called when the DetailsView control is not in edit mode.
When the DetailsView control is in edit mode, use the UpdateItem method to programmatically update the current record in the data source. This method is commonly used when you need to update the current record from outside of the DetailsView control, such as from a different control on the page.