編輯

共用方式為


DataControlFieldCell.ContainingField Property

Definition

Gets the DataControlField object that contains the current cell.

public:
 property System::Web::UI::WebControls::DataControlField ^ ContainingField { System::Web::UI::WebControls::DataControlField ^ get(); };
public System.Web.UI.WebControls.DataControlField ContainingField { get; }
member this.ContainingField : System.Web.UI.WebControls.DataControlField
Public ReadOnly Property ContainingField As DataControlField

Property Value

A DataControlField that contains the current cell, or null, if no DataControlField is passed to the class constructor.

Remarks

The content rendering for the DataControlFieldCell object might be affected by the various DataControlField properties of the containing field, such as ItemStyle, ControlStyle, and ShowHeader.

Applies to

See also