Control.DataItemContainer Property

Definition

Gets a reference to the naming container if the naming container implements IDataItemContainer.

C#
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.Control DataItemContainer { get; }

Property Value

The naming container. In a hierarchy of naming containers that implement IDataItemContainer, this property returns the naming container at the top of the hierarchy, or null if the current Control object is not in a naming container that implements IDataItemContainer.

Attributes

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1