MindFusion WinForms Programmer's Guide
PieChart.DataField Property
See Also
 





Gets or sets the database field, which values are used as data for the pie.

Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms

 Syntax

C#  Copy Code

public string DataField { get; set; }

Visual Basic  Copy Code

Public Property DataField As String

 Property Value

The string that specifies the name of the database field.

 Remarks

The property enables you to bind the data for the pie chart to a field in a database. The data source object is specified with the DataSource property. If it is of type DataSet you can use the DataMember property to specify a particular table as source for the chart data. In this case the fields of the table appear as items in the drop down combo box in the DataField property of the pie control.

The DataField property, when populated with data, is the same as the Data property.

Default value for the DataField property is an empty string ("").

 See Also

PieChart Members
PieChart Class
MindFusion.Charting.WinForms Namespace
Retrieving Chart Data from a Database