System.Web.UI.WebControls Namespace DataBoundControl Class
Sets or retrieves the specific data member in a multi-member DataSource to bind to a Repeater control.
Inline |
<asp:Repeater datamember = strName ... > |
Script |
Repeater.DataMember [ = strName ] |
strName |
String specifying the name of a data memebr in a multi-member DataSource. |
The property is read/write with no default value.
Use the DataMember property to specify the name of the specific data member in a DataSource, whose set of values will be used to bind to the Repeater control.
This property applies only when the DataSource contains multiple sets of data. For example, if there is more than one table in the data source, use the DataMember property to specify which table to bind to a Repeater control.
NOTE: If this property is not set, the set of values of the first data member ( for example, the first table in the DataSet ) is used by default.
DataBoundControl Members DataSource DataSourceID