Export (0) Print
Expand All

TemplateField.ExtractValuesFromCell Method

Note: This method is new in the .NET Framework version 2.0.

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.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public override void ExtractValuesFromCell (
	IOrderedDictionary dictionary,
	DataControlFieldCell cell,
	DataControlRowState rowState,
	bool includeReadOnly
)
public void ExtractValuesFromCell (
	IOrderedDictionary dictionary, 
	DataControlFieldCell cell, 
	DataControlRowState rowState, 
	boolean includeReadOnly
)
public override function ExtractValuesFromCell (
	dictionary : IOrderedDictionary, 
	cell : DataControlFieldCell, 
	rowState : DataControlRowState, 
	includeReadOnly : boolean
)

Parameters

dictionary

An IOrderedDictionary.

cell

A DataControlFieldCell that contains the text or controls of the TemplateField.

rowState

One of the DataControlRowState values.

includeReadOnly

true to indicate that the values of read-only fields are included in the dictionary collection; otherwise, false.

The ExtractValuesFromCell method is implemented by types derived from DataControlField, such as 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 ExtractValuesFromCell method is called by the ExtractRowValues method of data controls such as DetailsView and GridView.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft