Getting tables from dataset
Posted: Wed Feb 23, 2011 7:32 pm
Hi forum
i have a problem with this fffff components. I have lost my day, trying to solve this, but is not possible. I know i have asked this before, but the problem is still here.
I have a user control in my project.
by code, I have the next
Now, I go to the Editor of the chartcontroller, press Add button to add a new serie. Until here, is ok.
Now, I select the new serie a go to tab Series>Datasource and chooses Database as Datasource, but in the dropdownlist dataset i cannot find the tables.
I have tryed all:
with the tutorial "Connecting to ADO.NET sources at run-time"
with singlerecord
with crosstab
, but have been impossible.
what I need is only something like:
tchart.datasource = dataset; or
tchartcontroller.datasource = dataset;
Somebody can tell, whether is possible to get this tables in a comprensible way.
Thankyou
i have a problem with this fffff components. I have lost my day, trying to solve this, but is not possible. I know i have asked this before, but the problem is still here.
I have a user control in my project.
by code, I have the next
Code: Select all
public class Graph : UserControl
{
private DataSet _ds;
pubic Graph(DataSet ds)
{
this._ds = ds;
InitializeComponent();
MyInit();
}
private void MyInit()
{
tchart1 = new TChart();
tchartController1 = new ChartController();
tchart1.Dock = DockStyle.Fill;
tchart1.Axes.Left.Automatic = false;
tchart1.Axes.Left.Maximum = 1;
tchart1.Axes.Bottom.Automatic = false;
tchart1.Axes.Bottom.Maximum = 1;
tchartController1.Chart = tchart1;
this.Controls.Add(tchart1);
this.Controls.Add(tchartController1);
}
}
Now, I select the new serie a go to tab Series>Datasource and chooses Database as Datasource, but in the dropdownlist dataset i cannot find the tables.
I have tryed all:
with the tutorial "Connecting to ADO.NET sources at run-time"
with singlerecord
with crosstab
, but have been impossible.
what I need is only something like:
tchart.datasource = dataset; or
tchartcontroller.datasource = dataset;
Somebody can tell, whether is possible to get this tables in a comprensible way.
Thankyou