Dundas Chart for Windows Forms
DataBindTable(IEnumerable,String) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > Chart Class > DataBindTable Method : DataBindTable(IEnumerable,String) Method


dataSource
The data source, which can be any IEnumerable object.
Data source.
xField
Name of the field used for the series' X-values.
Name of the field for series X values.

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


Automatically creates and binds series to specified data table. Each column of the table becomes a Y value in a separate series. Series X value field may also be provided.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub DataBindTable( _
   ByVal dataSource As IEnumerable, _
   ByVal xField As String _
) 
Visual Basic (Usage) Copy Code
Dim instance As Chart
Dim dataSource As IEnumerable
Dim xField As String
 
instance.DataBindTable(dataSource, xField)
C#  
public void DataBindTable( 
   IEnumerable dataSource,
   string xField
)

Parameters

dataSource
The data source, which can be any IEnumerable object.
Data source.
xField
Name of the field used for the series' X-values.
Name of the field for series X values.

Remarks

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

The series' XValue field can also be provided.

Note: We highly recommend reading the Data Binding topic for help in determining how to bind your data.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.