Can't bind datatable to Chart Control

后端 未结 3 516
萌比男神i
萌比男神i 2021-01-21 02:24

I\'d like to use a polar chart in my test application. I\'ve a data table with a couple of columns where the column with the name of \"X\" should provide the x value members, th

3条回答
  •  难免孤独
    2021-01-21 03:17

    Another solution might be:

    chart1.DataBindTable(dt.DefaultView, "X");
    

    As a bonus, the DataView this returns can be used for sorting and filtering, besides being "databindable".

提交回复
热议问题