BoundField.ExtractValuesFromCell 方法

定義

使用指定 IDictionary 物件的值填入指定的 TableCell 物件。

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)

參數

dictionary
IOrderedDictionary

IDictionary,用於儲存指定儲存格的值。

cell
DataControlFieldCell

TableCell,包含要擷取的值。

rowState
DataControlRowState

其中一個 DataControlRowState 值。

includeReadOnly
Boolean

true 表示包含唯讀欄位的值,否則為 false

備註

方法 ExtractValuesFromCell 提供為方便的方式,可從 物件中指定的物件中 BoundField 擷取欄位 TableCell 的值。

注意

這個方法主要由控制項開發人員使用。

這個方法不會傳回值。 相反地,域值會透過 System.Collections.IDictionary 針對 參數傳入 dictionary 的物件傳回參考。 呼叫 方法之後,請逐 System.Collections.IDictionary 一查看 物件以存取域值。

注意

TableCell如果物件包含唯讀域值,您必須傳入 true ,參數 includeReadOnly 才能包含這些值。

適用於

另請參閱