ASP.Net Repeater DataSet DataBinding using C#

Repeater Data control is a simpler Data bound control of ASP.Net 2.0 that can be used to display the data items retrieved from SQL database. In this sample for Repeater Databinding we have used Employees table of Northwind SQL database. SqlDataAdapter has been used in the C# code to fill the DataSet to bind the data to the Repeater control. DataSource property of Repeater control allows you to pass the DataSet as data source to bind the data retrieved from the SQL database.

DataBinding Methods

1. SqlDataAdapter: to fill the DataSet

2. DataSet: it stores the in-memory schema and data retrieved from the SQL Database

Repeater Property

1. DataSource

Repeater Method

1. DataBind()

RAD Designer Code

DataBinder.Eval(object container, string expression)