CompositeDataBoundControl Class
Represents the base class for a tabular data-bound control that is composed of other server controls.
Assembly: System.Web (in System.Web.dll)
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)] [AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)] public ref class CompositeDataBoundControl abstract : public DataBoundControl, INamingContainer
<asp:CompositeDataBoundControl />
The CompositeDataBoundControl class serves as the base class for a composite server control that binds to data from a data source. A composite server control is a control that is built from a combination of other server controls. Page developers do not use the CompositeDataBoundControl class directly; instead, they use controls that derive from this class. Examples of composite data-bound controls include the DetailsView, FormView, and GridView controls.
Classes that inherit from the CompositeDataBoundControl control must override the CreateChildControls(IEnumerable, Boolean) method to create the control hierarchy. To access the child controls of a composite data-bound control, use the Controls collection.
Notes to Inheritors:When you inherit from the CompositeDataBoundControl class, you must override the following member: CreateChildControls(IEnumerable, Boolean).
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
System.Web.UI::Control
System.Web.UI.WebControls::WebControl
System.Web.UI.WebControls::BaseDataBoundControl
System.Web.UI.WebControls::DataBoundControl
System.Web.UI.WebControls::CompositeDataBoundControl
System.Web.UI.WebControls::DetailsView
System.Web.UI.WebControls::FormView
System.Web.UI.WebControls::GridView
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.