Repeater::DataMember Property
.NET Framework (current version)
Gets or sets the specific table in the DataSource to bind to the control.
Assembly: System.Web (in System.Web.dll)
public: property String^ DataMember { virtual String^ get(); virtual void set(String^ value); }
If the data source specified by the DataSource property contains multiple sources of data, use the DataMember property to specify the specific source to bind to the control. For example, if you have a System.Data::DataSet with multiple tables, you must specify which table to bind to the control. After you have specified the data source, use the DataBind method to bind the data source to the control.
The value of this property is stored in view state.
The following example demonstrates how to use the DataMember property to specify a table in the DataSource to bind to the Repeater control.
.NET Framework
Available since 1.1
Available since 1.1
Show: