Redigera

Dela via


GridView.ExtractRowValues Method

Definition

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

protected:
 virtual void ExtractRowValues(System::Collections::Specialized::IOrderedDictionary ^ fieldValues, System::Web::UI::WebControls::GridViewRow ^ row, bool includeReadOnlyFields, bool includePrimaryKey);
protected virtual void ExtractRowValues (System.Collections.Specialized.IOrderedDictionary fieldValues, System.Web.UI.WebControls.GridViewRow row, bool includeReadOnlyFields, bool includePrimaryKey);
abstract member ExtractRowValues : System.Collections.Specialized.IOrderedDictionary * System.Web.UI.WebControls.GridViewRow * bool * bool -> unit
override this.ExtractRowValues : System.Collections.Specialized.IOrderedDictionary * System.Web.UI.WebControls.GridViewRow * bool * bool -> unit
Protected Overridable Sub ExtractRowValues (fieldValues As IOrderedDictionary, row As GridViewRow, includeReadOnlyFields As Boolean, includePrimaryKey As Boolean)

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

See also