Repeater.DataMember Property

 

Gets or sets the specific table in the DataSource to bind to the control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

abstract DataMember : string with get, set
override DataMember : string with get, set

Property Value

Type: System.String

A string that specifies a table in the DataSource.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: