DataPointCollection::DataBindY Method (array<IEnumerable>)
Data binds the Y-value(s) of the collection's data points to the first column of the specified data source(s).
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
Parameters
- yValue
- Type: array<System.Collections::IEnumerable>
One or more comma-separated IEnumerable<T> data sources.
This method binds the Y-value(s) of the data points in the collection to the first column of the specified data source(s).
To bind Y-values to a data source column that is not the first available column, use the DataBindY method.
You can bind several Y-values by specifying multiple data sources, using the yValue parameter. Note that the first available column in each data source will be used for each data point's successive Y-values. For example, the first column of the first IEnumerable<T> data source will be bound to the first Y-value of data points, the first column of the second IEnumerable<T> data source will be bound to the second Y-value of data points, and so forth.
If Y-values are not provided by the data source, or if the wrong number of values are provided, an exception will be thrown.
The following is a list of objects that you can use as the data source parameter:
The following is a list of objects that you can use as the data source:
DataView
Data readers (SQL, OleDB)
Arrays
Lists
All other objects that use the IEnumerable<T> interface.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.