System.Web.UI.WebControls Namespace DataBoundControl Class
.NET Framework version 2.0
Sets or retrieves the specific data member in a multi-member DataSource to bind to a data bound control.
Inline |
<asp:databoundcontrol datamember = strName ... > |
Script |
DataBoundControl.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 data bound 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 data bound 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