TemplateField.ExtractValuesFromCell(IOrderedDictionary, DataControlFieldCell, DataControlRowState, Boolean) Método

Definição

Extrai o valor dos campos de controle de dados conforme especificado por uma ou mais declarações de associação bidirecional (DataBind) da célula da tabela atual e adiciona os valores à coleção IOrderedDictionary especificada.Extracts the value of the data control fields as specified by one or more two-way binding statements (DataBind) from the current table cell and adds the values to the specified IOrderedDictionary collection.

public:
 override void ExtractValuesFromCell(System::Collections::Specialized::IOrderedDictionary ^ dictionary, System::Web::UI::WebControls::DataControlFieldCell ^ cell, System::Web::UI::WebControls::DataControlRowState rowState, bool includeReadOnly);
public override void ExtractValuesFromCell (System.Collections.Specialized.IOrderedDictionary dictionary, System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlRowState rowState, bool includeReadOnly);
override this.ExtractValuesFromCell : System.Collections.Specialized.IOrderedDictionary * System.Web.UI.WebControls.DataControlFieldCell * System.Web.UI.WebControls.DataControlRowState * bool -> unit
Public Overrides Sub ExtractValuesFromCell (dictionary As IOrderedDictionary, cell As DataControlFieldCell, rowState As DataControlRowState, includeReadOnly As Boolean)

Parâmetros

cell
DataControlFieldCell

Um DataControlFieldCell que contém o texto ou os controles do TemplateField.A DataControlFieldCell that contains the text or controls of the TemplateField.

rowState
DataControlRowState

Um dos valores de DataControlRowState.One of the DataControlRowState values.

includeReadOnly
Boolean

true para indicar que os valores dos campos somente leitura são incluídos na coleção dictionary; caso contrário, false.true to indicate that the values of read-only fields are included in the dictionary collection; otherwise, false.

Comentários

O ExtractValuesFromCell método é implementado por tipos derivados de DataControlField , como TemplateField .The ExtractValuesFromCell method is implemented by types derived from DataControlField, such as TemplateField. Esse método é chamado para extrair os valores de campos de associação de dados bidirecionais no modelo para preencher os dicionários a serem passados para a fonte de dados para uma operação de atualização, inserção ou exclusão.This method is called to extract the values of two-way data-bound fields in the template to populate dictionaries to be passed to the data source for an update, insert, or delete operation. O par de campo/valor é armazenado na coleção de dicionários que é passada para o método.The field/value pair is stored in the dictionary collection that is passed to the method. O ExtractValuesFromCell método é chamado pelo ExtractRowValues método de controles de dados, como DetailsView e GridView .The ExtractValuesFromCell method is called by the ExtractRowValues method of data controls such as DetailsView and GridView.

Aplica-se a

Confira também