DataPointCollection.DataBind(IEnumerable, String, String, String) Metoda

Definice

Data sváže hodnoty X, hodnoty Y a hodnoty vlastností datových bodů, jako je popis nebo LabelStyle, ke zdroji dat.

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

Parametry

dataSource
IEnumerable

Zdroj dat.

xField
String

Název pole pro hodnoty X.

yFields
String

Názvy polí oddělených čárkami pro hodnoty Y.

otherFields
String

Další vlastnosti datového bodu s pravidly vazeb ve formátu: PointProperty=Field[{Format}] [,PointProperty=Field[{Format}]].

Příklad: "Tooltip=Price{C1},Url=WebSiteName".

Poznámky

Zdrojem dat může být Ole(SQL)DataReader, DataView, DataSet, DataTable nebo DataRow.

Platí pro