GridView.ExtractRowValues(IOrderedDictionary, GridViewRow, Boolean, Boolean) 方法

定义

检索在指定行中声明的每个字段的值,并将它们存储在指定的 IOrderedDictionary 对象中。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)

参数

fieldValues
IOrderedDictionary

用来存储字段值的 IOrderedDictionaryAn IOrderedDictionary used to store the field values.

row
GridViewRow

将从其中检索字段值的 GridViewRowThe GridViewRow from which to retrieve the field values.

includeReadOnlyFields
Boolean

true 表示包含只读字段;否则为 falsetrue to include read-only fields; otherwise, false.

includePrimaryKey
Boolean

true 表示包含主键字段;否则为 falsetrue to include the primary key field or fields; otherwise, false.

注解

ExtractRowValues 方法是 GridView 控件调用的帮助器方法,以检索 row 参数所指定的行中声明的每个字段的值。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. 您可以通过分别使用 includeReadOnlyFieldsincludePrimaryKey 参数来指定提取的值是否包括只读字段和键字段。You can specify whether the extracted values include read-only fields and key fields by using the includeReadOnlyFields and includePrimaryKey parameters, respectively.

继承者说明

扩展 GridView 类时,可以重写此方法以创建自己的例程来检索字段值。When extending the GridView class, you can override this method to create your own routine to retrieve the field values.

适用于

另请参阅