Chart::DataBindTable Method (IEnumerable^, String^)
.NET Framework (current version)
Automatically creates and binds series data to the specified data table, and optionally populates X-values.
Assembly: System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)
Parameters
- dataSource
-
Type:
System.Collections::IEnumerable^
The data source that is data bound by a chart, which can be any IEnumerable object.
- xField
-
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
Available since 4.0
Available since 4.0
Show: