What is the easiest way to convert a column of data from a datatable to a double? I am trying to populate a componentone chart and can't get the binding to work right so I figured I would try the brute force method and set the chart to double and be done with it. I am trying to go to a List<double> and then from the list to double but I get an error when trying to compile the list that
"Error 1 The as operator must be used with a reference type or nullable type ('double' is a non-nullable value type)"
I am open to cleaner ways to do this.
foreach (DataRow myRow in sim1.Tables["Data"].Rows)
xdata.Add(myRow["Count"] as double);