DateTime XValues DB Column
Posted: Tue Nov 09, 2004 10:13 pm
Hi.
I Use database table as line series datasouce.
In this table exists Date Column(X) and Value Column(Y).
When the Value is DBNull I get error:"Object cannot be cast from DBNull to other types".
If I change X and Y to Value Column DataMember it don't happens.
What is the trouble with dateTime Column?
Steema.TeeChart.Styles.Line serLine = new Steema.TeeChart.Styles.Line();
tcrBase.Series.Add(serLine);
serLine.DataSource = dt;
serLine.XValues.DataMember=DateColumnName;
serLine.YValues.DataMember = valueColumnName;
Thanks,Sonia
I Use database table as line series datasouce.
In this table exists Date Column(X) and Value Column(Y).
When the Value is DBNull I get error:"Object cannot be cast from DBNull to other types".
If I change X and Y to Value Column DataMember it don't happens.
What is the trouble with dateTime Column?
Steema.TeeChart.Styles.Line serLine = new Steema.TeeChart.Styles.Line();
tcrBase.Series.Add(serLine);
serLine.DataSource = dt;
serLine.XValues.DataMember=DateColumnName;
serLine.YValues.DataMember = valueColumnName;
Thanks,Sonia