This documentation is archived and is not being maintained.
DataPointCollection::DataBind Method
Visual Studio 2010
Data binds the X-value, Y-value(s) and property values of the data points, such as Tooltip or LabelStyle, to the data source.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
public: void DataBind( IEnumerable^ dataSource, String^ xField, String^ yFields, String^ otherFields )
Parameters
- dataSource
- Type: System.Collections::IEnumerable
The data source.
- xField
- Type: System::String
The name of the field for X-values.
- yFields
- Type: System::String
A comma separated names of the fields for Y-values.
- otherFields
- Type: System::String
Other data point properties with binding rules, in the format: PointProperty=Field[{Format}] [,PointProperty=Field[{Format}]].
For example: "Tooltip=Price{C1},Url=WebSiteName".
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.
Show: