ListControl.PerformDataBinding Method (IEnumerable)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Binds the specified data source to the control that is derived from the ListControl class.

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

protected internal override void PerformDataBinding(
	IEnumerable dataSource
)

Parameters

dataSource
Type: System.Collections.IEnumerable

An IEnumerable that represents the data source.

Exception Condition
ArgumentOutOfRangeException

The cached value of SelectedIndex is out of range.

ArgumentException

The cached values of SelectedIndex and SelectedValue do not match.

The PerformDataBinding method is a helper method that is called by the control that is derived from the ListControl class to bind the specified data source to the control.

.NET Framework
Available since 2.0
Return to top
Show: