System.Web.UI.WebControls.TemplateField.ExtractValuesFromCell Method

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 System.Collections.Specialized.IOrderedDictionary collection.

Syntax

public override void ExtractValuesFromCell (System.Collections.Specialized.IOrderedDictionary dictionary, DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly)

Parameters

dictionary
An System.Collections.Specialized.IOrderedDictionary.
cell
A System.Web.UI.WebControls.DataControlFieldCell that contains the text or controls of the System.Web.UI.WebControls.TemplateField.
rowState
One of the System.Web.UI.WebControls.DataControlRowState values.
includeReadOnly
true to indicate that the values of read-only fields are included in the dictionary collection; otherwise, false.

Remarks

The TemplateField.ExtractValuesFromCell(System.Collections.Specialized.IOrderedDictionary, DataControlFieldCell, DataControlRowState, bool) method is implemented by types derived from System.Web.UI.WebControls.DataControlField, such as System.Web.UI.WebControls.TemplateField. 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. The field/value pair is stored in the dictionary collection that is passed to the method. The TemplateField.ExtractValuesFromCell(System.Collections.Specialized.IOrderedDictionary, DataControlFieldCell, DataControlRowState, bool) method is called by the ExtractRowValues method of data controls such as System.Web.UI.WebControls.DetailsView and System.Web.UI.WebControls.GridView.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0