asp.net.ph

BaseDataList.DataMember Property

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.

Syntax


Inline <asp:basedatalist datamember = strName ... >
Script BaseDataList.DataMember [ = strName ]

Property Value


strName String specifying the name of a data memebr in a multi-member DataSource.

The property is read/write with no default value.

Remarks

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.

See Also

BaseDataList Members   DataSource   DataKeyField   DataKeys Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph