GridView.ExtractRowValues Method

Definition

Retrieves the values of each field declared within the specified row and stores them in the specified IOrderedDictionary object.

C#
protected virtual void ExtractRowValues(System.Collections.Specialized.IOrderedDictionary fieldValues, System.Web.UI.WebControls.GridViewRow row, bool includeReadOnlyFields, bool includePrimaryKey);

Parameters

fieldValues
IOrderedDictionary

An IOrderedDictionary used to store the field values.

row
GridViewRow

The GridViewRow from which to retrieve the field values.

includeReadOnlyFields
Boolean

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

includePrimaryKey
Boolean

true to include the primary key field or fields; otherwise, false.

Remarks

The ExtractRowValues method is a helper method called by the GridView control to retrieve the values of each field declared within the row specified by the row parameter. You can specify whether the extracted values include read-only fields and key fields by using the includeReadOnlyFields and includePrimaryKey parameters, respectively.

Notes to Inheritors

When extending the GridView class, you can override this method to create your own routine to retrieve the field values.

Applies to

Tuote Versiot
.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