BoundField.ExtractValuesFromCell Method

Definition

Fills the specified IDictionary object with the values from the specified TableCell object.

C#
public override void ExtractValuesFromCell(System.Collections.Specialized.IOrderedDictionary dictionary, System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlRowState rowState, bool includeReadOnly);

Parameters

dictionary
IOrderedDictionary

A IDictionary used to store the values of the specified cell.

cell
DataControlFieldCell

The TableCell that contains the values to retrieve.

rowState
DataControlRowState

One of the DataControlRowState values.

includeReadOnly
Boolean

true to include the values of read-only fields; otherwise, false.

Remarks

The ExtractValuesFromCell method is provided as a convenient way to retrieve the values of the fields from the specified TableCell object in a BoundField object.

Poznámka

This method is used primarily by control developers.

This method does not have a return value. Instead, the field values are returned by reference through the System.Collections.IDictionary object passed in for the dictionary parameter. After the method has been called, iterate through the System.Collections.IDictionary object to access the field values.

Poznámka

If the TableCell object contains read-only field values, you must pass in true for the includeReadOnly parameter to include those values.

Applies to

Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also