System.Web.UI.WebControls Namespace BaseDataList Class
Sets or retrieves the specific data member in a multi-member DataSource to bind to a data listing control.
Inline |
<asp:basedatalist datamember = strName ... > |
Script |
BaseDataList.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 a data listing 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 the data listing 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.
BaseDataList Members DataSource DataKeyField DataKeys