DataSource of HorizBox
Posted: Tue Apr 07, 2009 8:19 am
Hello,
i have tried to use a Datatable for the DataSource property of HorizBox but this did not work.
Example:
A workaround for this is to use a other series as DataSource and this other series have set the DataTable.
Bye!
i have tried to use a Datatable for the DataSource property of HorizBox but this did not work.
Example:
Code: Select all
Steema.TeeChart.Styles.HorizBox ser = new Steema.TeeChart.Styles.HorizBox();
DataTable dt = new DataTable();
dt.Columns.Add("test");
dt.Rows.Add("1");
dt.Rows.Add("1");
dt.Rows.Add("2");
dt.Rows.Add("2");
dt.Rows.Add("3");
ser.DataSource = dt;
ser.XValues.DataMember = "test"; // this do not work
//ser.Add(new double[] { 1, 1, 2, 2, 3 }); // this work
ser.ReconstructFromData();
tChart1.Series.Add(ser);
Bye!