Επεξεργασία

Κοινή χρήση μέσω


DataControlFieldCell Constructors

Definition

Initializes a new instance of the DataControlFieldCell class.

Overloads

DataControlFieldCell(DataControlField)

Initializes a new instance of the DataControlFieldCell class, setting the specified DataControlField object as the cell's container.

DataControlFieldCell(HtmlTextWriterTag, DataControlField)

Initializes a new instance of the DataControlFieldCell class, setting the specified DataControlField object as the cell's container.

DataControlFieldCell(DataControlField)

Initializes a new instance of the DataControlFieldCell class, setting the specified DataControlField object as the cell's container.

public:
 DataControlFieldCell(System::Web::UI::WebControls::DataControlField ^ containingField);
public DataControlFieldCell (System.Web.UI.WebControls.DataControlField containingField);
new System.Web.UI.WebControls.DataControlFieldCell : System.Web.UI.WebControls.DataControlField -> System.Web.UI.WebControls.DataControlFieldCell
Public Sub New (containingField As DataControlField)

Parameters

containingField
DataControlField

The DataControlField that contains the current cell.

Remarks

This constructor uses the HtmlTextWriterTag.Td element defined by its base class to render the cell. The DataControlField object passed in the containingField parameter is used to determine whether to show headers and what styles to apply to the cell when it is rendered.

Applies to

DataControlFieldCell(HtmlTextWriterTag, DataControlField)

Initializes a new instance of the DataControlFieldCell class, setting the specified DataControlField object as the cell's container.

protected:
 DataControlFieldCell(System::Web::UI::HtmlTextWriterTag tagKey, System::Web::UI::WebControls::DataControlField ^ containingField);
protected DataControlFieldCell (System.Web.UI.HtmlTextWriterTag tagKey, System.Web.UI.WebControls.DataControlField containingField);
new System.Web.UI.WebControls.DataControlFieldCell : System.Web.UI.HtmlTextWriterTag * System.Web.UI.WebControls.DataControlField -> System.Web.UI.WebControls.DataControlFieldCell
Protected Sub New (tagKey As HtmlTextWriterTag, containingField As DataControlField)

Parameters

tagKey
HtmlTextWriterTag

An HtmlTextWriterTag that specifies the HTML tag to render for the cell. The default tag used by the TableCell class is Td.

containingField
DataControlField

The DataControlField that contains the current cell.

Remarks

The tagKey parameter is passed to the WebControl base class constructor, and controls the HTML tag that is emitted by the control. The DataControlField passed in the containingField parameter is used to determine whether to show headers and what styles to apply to the cell when it is rendered.

Applies to