GridView.OnRowUpdated(GridViewUpdatedEventArgs) Método

Definição

Aciona o evento RowUpdated.Raises the RowUpdated event.

protected:
 virtual void OnRowUpdated(System::Web::UI::WebControls::GridViewUpdatedEventArgs ^ e);
protected virtual void OnRowUpdated (System.Web.UI.WebControls.GridViewUpdatedEventArgs e);
abstract member OnRowUpdated : System.Web.UI.WebControls.GridViewUpdatedEventArgs -> unit
override this.OnRowUpdated : System.Web.UI.WebControls.GridViewUpdatedEventArgs -> unit
Protected Overridable Sub OnRowUpdated (e As GridViewUpdatedEventArgs)

Parâmetros

e
GridViewUpdatedEventArgs

Um GridViewUpdatedEventArgs que contém dados do evento.A GridViewUpdatedEventArgs that contains event data.

Comentários

O RowUpdated evento é gerado quando um botão de atualização de uma linha é clicado, mas depois que o GridView controle atualiza a linha.The RowUpdated event is raised when a row's Update button is clicked, but after the GridView control updates the row. Isso permite que você forneça um método de manipulação de eventos que executa uma rotina personalizada, como verificar os resultados da operação de atualização, sempre que esse evento ocorrer.This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the update operation, whenever this event occurs.

A geração de um evento invoca o manipulador de eventos por meio de um delegado.Raising an event invokes the event handler through a delegate. Para obter mais informações, consulte manipulando e gerando eventos.For more information, see Handling and Raising Events.

O OnRowUpdated método também permite que classes derivadas manipulem o evento sem anexar um delegado.The OnRowUpdated method also allows derived classes to handle the event without attaching a delegate. Essa é a técnica preferida para manipular o evento em uma classe derivada.This is the preferred technique for handling the event in a derived class.

Notas aos Herdeiros

Ao substituir OnRowUpdated(GridViewUpdatedEventArgs) em uma classe derivada, certifique-se de chamar o método da classe base OnRowUpdated(GridViewUpdatedEventArgs) para que os delegados registrados recebam o evento.When overriding OnRowUpdated(GridViewUpdatedEventArgs) in a derived class, be sure to call the base class's OnRowUpdated(GridViewUpdatedEventArgs) method so that registered delegates receive the event.

Aplica-se a

Confira também