.Net Charts - Converting DataTable to IEnumerable interface
Hi,
I am using .Net Charts. It has a method DataBindTable() which takes IEnumerable as a parameter. Now I have DataTable and unable to convert it into IEnumerable. Google says there is an extension method DataTable.AsEnumerable() but it returns System.Collections.Generic.IEnumerable, however I need to convert the table into System.Collections.IEnumerable.
Also I cannot pass the data reader directly as I need to Transpose+Update the result set before passing it to the Chart. Moreover, my datatable is having dynamic rows and columns.
Kindly suggest.
Thanks,
Shazia.
Last edited by shazia1; January 17th, 2014 at 02:26 AM..
|