Can I have a sample of Real-time candle-stick or stock chart for WinForms bound to a generic List?
In my code, I am getting an exception on this line: ChartDataBindModel model = new ChartDataBindModel(candles, "StockTrack.Candle");
candles is a List<Candle> having items of type StockTrack.Candle.
Here is the exception: System.ArgumentException: Child list for field StockTrack cannot be created. at System.Windows.Forms.BindingContext.EnsureListManager(Object dataSource, String dataMember) at System.Windows.Forms.BindingContext.EnsureListManager(Object dataSource, String dataMember) at Syncfusion.Windows.Forms.Chart.ChartBaseDataBindList.Reset() at Syncfusion.Windows.Forms.Chart.ChartDataBindModel.Reset() at Syncfusion.Windows.Forms.Chart.ChartDataBindModel..ctor(Object dataSource, String dataMember)
I think the dot(.) between StockTrack and Candle is causing problem. StockTrack is the namespace and Candle is the class.
This also gives me a similar exception (Child list for field Candle cannot be created): ChartDataBindModel model = new ChartDataBindModel(candles, "Candle");