DataBoundControl.DataMember 属性


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

 virtual property System::String ^ DataMember { System::String ^ get(); void set(System::String ^ value); };
public virtual string DataMember { get; set; }
member this.DataMember : string with get, set
Public Overridable Property DataMember As String


数据绑定控件绑定到的特定数据列表的名称(如果数据源控件提供了多个列表)。The name of the specific list of data that the data-bound control binds to, if more than one list is supplied by a data source control. 默认值是 EmptyThe default value is Empty.



DataMember 属性的值存储在视图状态中。The value of the DataMember property is stored in view state.

无法通过主题或样式表主题设置此属性。This property cannot be set by themes or style sheet themes. 有关详细信息,请参阅 ThemeableAttributeASP.NET 主题和外观For more information, see ThemeableAttribute and ASP.NET Themes and Skins.