I have a RangeBarChart where the X Axis represents the time of the day from 6am to 10pm. The Y Axis represents a number of events. Each event consists of a StartTime variable and an EndTime variable (both are DateTime datatypes). I am adding the Series programmatically in ASP.NET VB.
The data is pulled from an SQL Database. When I assign the variables, I get a "Specified cast is not valid". Presumably, the RangeSeriesItem is looking for a different datatype than DateTime.
While UserReader.Read()
Dim AdjudicatorSeriesItem As New RangeSeriesItem(UserReader("fldNotesDateStart"), UserReader("fldNotesDateEnd"))
AdjudicatorSeries.SeriesItems.Add(AdjudicatorSeriesItem)
End While
Any ideas?