Data Property (DataEngine)
Gets or sets a DataTable, DataSet, DataView, XML file name, Xml string or an object that implement IEnumerable, ArrayList or HashTable used to generate a SeriesCollection.
Syntax
'Declaration Public Property Data As Object
'Usage Dim instance As DataEngine Dim value As Object instance.Data = value value = instance.Data
public object Data {get; set;}
Remarks
When not connecting to a database directly using ConnectionString and SqlStatement, this property offers an alternative method for obtaining database data.
Example
This example sets the data property to a dataTable and defines data fields mapping.
DataEngine de = new DataEngine(); de.Data = myDataTable; de.DataFields = "XAxis=FirstCol,YAxis=SecondCol"; Chart.SeriesCollection.Add(de.GetSeries());
Dim de As New DataEngine() de.Data = myDataTable de.DataFields = "XAxis=FirstCol,YAxis=SecondCol" Chart.SeriesCollection.Add(de.GetSeries())
Example
Requirements
Target Platforms: 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
See Also