語言

DynamicField.InitializeCell 方法

定義

在指定的儲存格中新增文字或控制項。

public:
 override void InitializeCell(System::Web::UI::WebControls::DataControlFieldCell ^ cell, System::Web::UI::WebControls::DataControlCellType cellType, System::Web::UI::WebControls::DataControlRowState rowState, int rowIndex);
public override void InitializeCell(System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlCellType cellType, System.Web.UI.WebControls.DataControlRowState rowState, int rowIndex);
override this.InitializeCell : System.Web.UI.WebControls.DataControlFieldCell * System.Web.UI.WebControls.DataControlCellType * System.Web.UI.WebControls.DataControlRowState * int -> unit
Public Overrides Sub InitializeCell (cell As DataControlFieldCell, cellType As DataControlCellType, rowState As DataControlRowState, rowIndex As Integer)

參數

cell
DataControlFieldCell

包含該物件文字 DynamicField 或控制項的物件。

cellType
DataControlCellType

其中一個列舉值,用來指定物件的功能 cell 。

rowState
DataControlRowState

其中一個列舉值,用來指定列狀態。

rowIndex
Int32

物件所包含的列 cell 的索引。

適用於

另請參閱