BoundField.OnDataBindField(Object, EventArgs) Método

Definição

Associa o valor de um campo ao objeto de BoundField.Binds the value of a field to the BoundField object.

protected:
 virtual void OnDataBindField(System::Object ^ sender, EventArgs ^ e);
protected virtual void OnDataBindField (object sender, EventArgs e);
abstract member OnDataBindField : obj * EventArgs -> unit
override this.OnDataBindField : obj * EventArgs -> unit
Protected Overridable Sub OnDataBindField (sender As Object, e As EventArgs)

Parâmetros

sender
Object

A fonte do evento.The source of the event.

e
EventArgs

Um EventArgs que contém os dados do evento.An EventArgs that contains the event data.

Exceções

O controle ao qual o valor do campo está associado não é um TextBox ou um TableCell.The control to which the field value is bound is not a TextBox or a TableCell.

Comentários

O OnDataBindField método é um método auxiliar usado para associar o valor de um campo na fonte de dados a uma célula correspondente no BoundField objeto.The OnDataBindField method is a helper method used to bind the value of a field in the data source to a corresponding cell in the BoundField object.

Notas aos Herdeiros

Ao estender a BoundField classe, você pode substituir esse método para executar uma rotina de associação personalizada.When extending the BoundField class, you can override this method to perform a custom binding routine.

Aplica-se a

Confira também