Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Chart.DataBindTable Method (IEnumerable, String)

.NET Framework 4.6 and 4.5

Automatically creates and binds series data to the specified data table, and optionally populates X-values.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public void DataBindTable(
	IEnumerable dataSource,
	string xField


Type: System.Collections.IEnumerable

The data source, which can be any IEnumerable object.

Type: System.String

The name of the field used for the series X-values.

Each column of the table becomes a Y-value for a series, with one series per column.

The series' X-value field can also be provided.

.NET Framework

Supported in: 4.6, 4.5, 4
© 2015 Microsoft