Runtime editor (DataSource)
Posted: Fri Dec 05, 2003 9:39 am
Hi,
i still try to edit the datasource of a series at runtime. I hope now, as a registered user, i can get the attention of someone monitoring this forum .
Steema.TeeChart.Styles.Line series = new Steema.TeeChart.Styles.Line() ;
tChart.Series.Clear() ;
tChart.Series.Add( series ) ;
series.DataSource = dataSet ;
DataTable dt = dataSet.Tables[0] ;
series.LabelMember = dt.Columns[1].ColumnName ;
series.YValues.DataMember = dt.Columns[3].ColumnName ;
So far it works fine. The chart is displayed and shows the expected data.
But when showing the editor
Steema.TeeChart.Editors.SeriesEditor.ShowEditor( tChart[0], Steema.TeeChart.Editors.ChartEditorTabs.SeriesDataSource ) ;
i see two entries in the dataset combo box and the other fields are disabled. The two entries refer to (elements of) a strongly typed DataSet used in another part of the application and not to the anonymous dataset assigned a few statements before.
Has anyone an idea what is wrong here ?
Bernd F. Hoffmann
i still try to edit the datasource of a series at runtime. I hope now, as a registered user, i can get the attention of someone monitoring this forum .
Steema.TeeChart.Styles.Line series = new Steema.TeeChart.Styles.Line() ;
tChart.Series.Clear() ;
tChart.Series.Add( series ) ;
series.DataSource = dataSet ;
DataTable dt = dataSet.Tables[0] ;
series.LabelMember = dt.Columns[1].ColumnName ;
series.YValues.DataMember = dt.Columns[3].ColumnName ;
So far it works fine. The chart is displayed and shows the expected data.
But when showing the editor
Steema.TeeChart.Editors.SeriesEditor.ShowEditor( tChart[0], Steema.TeeChart.Editors.ChartEditorTabs.SeriesDataSource ) ;
i see two entries in the dataset combo box and the other fields are disabled. The two entries refer to (elements of) a strongly typed DataSet used in another part of the application and not to the anonymous dataset assigned a few statements before.
Has anyone an idea what is wrong here ?
Bernd F. Hoffmann