TemplateField.ExtractValuesFromCell 方法

定義

依一或多個雙向繫結陳述式 (DataBind) 的指定,從目前資料表儲存格抽取資料控制項欄位的值,並將這些值加入至指定的 IOrderedDictionary 集合。

public:
 override void ExtractValuesFromCell(System::Collections::Specialized::IOrderedDictionary ^ dictionary, System::Web::UI::WebControls::DataControlFieldCell ^ cell, System::Web::UI::WebControls::DataControlRowState rowState, bool includeReadOnly);
public override void ExtractValuesFromCell (System.Collections.Specialized.IOrderedDictionary dictionary, System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlRowState rowState, bool includeReadOnly);
override this.ExtractValuesFromCell : System.Collections.Specialized.IOrderedDictionary * System.Web.UI.WebControls.DataControlFieldCell * System.Web.UI.WebControls.DataControlRowState * bool -> unit
Public Overrides Sub ExtractValuesFromCell (dictionary As IOrderedDictionary, cell As DataControlFieldCell, rowState As DataControlRowState, includeReadOnly As Boolean)

參數

cell
DataControlFieldCell

DataControlFieldCell,其中包含 TemplateField 的文字或控制項。

rowState
DataControlRowState

其中一個 DataControlRowState 值。

includeReadOnly
Boolean

true 表示唯讀欄位的值包含在 dictionary 集合中,否則為 false

備註

方法 ExtractValuesFromCell 是由衍生自 DataControlField 的類型實作,例如 TemplateField 。 系統會呼叫這個方法,以擷取範本中雙向資料系結欄位的值,以填入要傳遞至資料來源以進行更新、插入或刪除作業的字典。 欄位/值組會儲存在傳遞至 方法的字典集合中。 方法 ExtractValuesFromCell 是由 ExtractRowValues 和 等 DetailsView GridView 資料控制項的 方法呼叫。

適用於

另請參閱