Repeater.DataBind Method

Binds the data source to the Repeater control.

Name Description
Repeater.DataBind () Binds the Repeater control and all its child controls to the specified data source.
Repeater.DataBind (Boolean) Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event.

Use the System.Web.UI.WebControls.Repeater.DataBind method to bind data from a source. The System.Web.UI.WebControls.Repeater.DataBind method commonly is used after retrieving a data set through a database query.

The System.Web.UI.WebControls.Repeater.DataBind method commonly is overridden when creating custom templated data-bound controls. For more information, see How to: Create Templated ASP.NET User Controls.

For more information about data binding to server controls, see Data Binding Expression Syntax.

Community Additions

ADD
Show: