Chart.DataBindCrossTable Chart.DataBindCrossTable Chart.DataBindCrossTable Chart.DataBindCrossTable Method

Definition

Data binds a chart to the table, with one series created per unique value in a given column.

Overloads

DataBindCrossTable(IEnumerable, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String)

Data binds a chart to the table, with one series created per unique value in a given column.

DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder)

Data binds a chart to the table, with one series created per unique value in a given column.

DataBindCrossTable(IEnumerable, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String) DataBindCrossTable(IEnumerable, String, String, String, String)

Data binds a chart to the table, with one series created per unique value in a given column.

public:
 void DataBindCrossTable(System::Collections::IEnumerable ^ dataSource, System::String ^ seriesGroupByField, System::String ^ xField, System::String ^ yFields, System::String ^ otherFields);
public void DataBindCrossTable (System.Collections.IEnumerable dataSource, string seriesGroupByField, string xField, string yFields, string otherFields);
member this.DataBindCrossTable : System.Collections.IEnumerable * string * string * string * string -> unit
Public Sub DataBindCrossTable (dataSource As IEnumerable, seriesGroupByField As String, xField As String, yFields As String, otherFields As String)

Parameters

dataSource
IEnumerable IEnumerable IEnumerable IEnumerable

The data source that is data bound by a chart.

seriesGroupByField
String String String String

The name of the field used to group data into the series.

xField
String String String String

The name of the field for X values.

yFields
String String String String

A comma-separated list of name(s) of the field(s) for Y value(s).

otherFields
String String String String

The other data point properties that can be bound.

Remarks

Series will be automatically added to the chart, depending on the number of unique values in the given seriesGroupByField column of the data source; in other words, the creation of series depends upon grouping of a column.

The data source can be a OleDbDataReader, SqlDataReader or a DataView object. Note that all collections that implement the IEnumerable interface can be used.

Other data point properties besides X and Y-values can be bound. The format is: PointProperty=Field[{Format}] [,PointProperty= Field[{Format}]]. For example:"Tooltip=Price{C1},Href=WebSiteName".

These data point properties are:

DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder)

Data binds a chart to the table, with one series created per unique value in a given column.

public:
 void DataBindCrossTable(System::Collections::IEnumerable ^ dataSource, System::String ^ seriesGroupByField, System::String ^ xField, System::String ^ yFields, System::String ^ otherFields, System::Windows::Forms::DataVisualization::Charting::PointSortOrder sortingOrder);
public void DataBindCrossTable (System.Collections.IEnumerable dataSource, string seriesGroupByField, string xField, string yFields, string otherFields, System.Windows.Forms.DataVisualization.Charting.PointSortOrder sortingOrder);
member this.DataBindCrossTable : System.Collections.IEnumerable * string * string * string * string * System.Windows.Forms.DataVisualization.Charting.PointSortOrder -> unit
Public Sub DataBindCrossTable (dataSource As IEnumerable, seriesGroupByField As String, xField As String, yFields As String, otherFields As String, sortingOrder As PointSortOrder)

Parameters

dataSource
IEnumerable IEnumerable IEnumerable IEnumerable

The data source that is data bound by a chart.

seriesGroupByField
String String String String

The name of the field used to group data into the series.

xField
String String String String

The name of the field for X values.

yFields
String String String String

A comma-separated list of name(s) of the field(s) for Y value(s).

otherFields
String String String String

The other data point properties that can be bound.

sortingOrder
PointSortOrder PointSortOrder PointSortOrder PointSortOrder

The order in which the series will be sorted by group field values.

Remarks

Series will be automatically added to the chart, depending on the number of unique values in the given seriesGroupByField column of the data source; in other words, the creation of series depends upon grouping of a column.

The data source can be a OleDbDataReader, SqlDataReader or a DataView object.

Note that all collections that implement the IEnumerable interface can be used.

Other data point properties besides X and Y-values can be bound. The format is: PointProperty=Field[{Format}] [,PointProperty= Field[{Format}]]. For example:"Tooltip=Price{C1},Href=WebSiteName".

These data point properties are:

Applies to