FormView.EnsureDataBound Método

Definição

Garante que o controle FormView está associado aos dados quando apropriado.Makes certain that the FormView control is bound to data when appropriate.

protected:
 override void EnsureDataBound();
protected override void EnsureDataBound ();
override this.EnsureDataBound : unit -> unit
Protected Overrides Sub EnsureDataBound ()

Comentários

O EnsureDataBound método é um método auxiliar usado pela FormView classe para certificar-se de que o FormView controle está associado a dados quando apropriado.The EnsureDataBound method is a helper method used by the FormView class to make certain that the FormView control is bound to data when appropriate. O EnsureDataBound método é geralmente chamado durante o OnPreRender método para associar o controle à fonte de dados quando o controle de vinculação de dados ainda não estiver associado, mas exigir Associação de dados.The EnsureDataBound method is usually called during the OnPreRender method to bind the control to the data source when the data-bound control is not yet bound, but requires data binding. Esta versão do método foi substituída para impedir que a vinculação de dados ocorra quando o FormView controle estiver no modo de inserção.This version of the method has been overridden to prevent data binding from occurring when the FormView control is in insert mode.

Aplica-se a

Confira também