ContainerType ContainerType ContainerType ContainerType Enum

定義

指定資料控制項容器的型別。Specifies the data-control container type.

public enum class ContainerType
public enum ContainerType
type ContainerType = 
Public Enum ContainerType
繼承
ContainerTypeContainerTypeContainerTypeContainerType

欄位

Item Item Item Item 1

表示實作 IDataBoundItemControl 介面的項目容器,例如 DetailsView 控制項或 FormView 控制項。Indicates an item container that implements the IDataBoundItemControl interface, such as a DetailsView control or a FormView control.

List List List List 0

表示實作 IDataBoundListControl 介面的清單容器,例如 ListView 控制項、GridView 控制項或 Repeater 控制項。Indicates a list container that implements the IDataBoundListControl interface, such as a ListView control, a GridView control, or a Repeater control.

備註

專案容器會保存可執行IDataBoundItemControl介面的專案容器, DetailsView例如或FormView控制項。Item containers holds item containers that implement the IDataBoundItemControl interface, such as DetailsView or FormView controls. 列出容器會IDataBoundListControl保存可執行介面的清單容器, ListView例如、 GridViewRepeater控制項。List containers hold list containers that implement the IDataBoundListControl interface, such as ListView, GridView, or Repeater controls.

適用於