IDataBoundControl 接口

定义

定义由数据绑定控件共享的属性。Defines properties that are shared by data-bound controls.

public interface class IDataBoundControl
public interface IDataBoundControl
type IDataBoundControl = interface
Public Interface IDataBoundControl
派生

注解

此接口提供对数据绑定控件GridView(如FormViewListViewDetailsView控件) 共享的属性的访问。This interface provides access to properties shared by data-bound controls, such as the GridView, ListView, FormView and DetailsView controls.

属性

DataKeyNames

获取或设置一个数组,该数组包含显示在数据绑定控件中的项的主键字段的名称。Gets or sets an array that contains the names of the primary-key fields of the items that are displayed in a data-bound control.

DataMember

当数据源包含多个数据项列表时,获取或设置数据绑定控件绑定到的数据列表的名称。Gets or sets the name of the list of data that the data-bound control binds to when the data source contains more than one list of data items.

DataSource

获取或设置数据绑定控件从中检索数据项列表的对象。Gets or sets the object from which the data-bound control retrieves a list of data items.

DataSourceID

获取或设置数据绑定控件从中检索数据项列表的数据源控件的 ID。Gets or sets the ID of the data source control from which the data-bound control retrieves a list of data items.

DataSourceObject

获取数据绑定控件从中检索数据项列表的数据源对象。Gets the data source object from which the data-bound control retrieves a list of data items.

适用于