Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Using a simple XML file or a DataTable as FlatDataSource
posted

Hello,

 

I am trying to use a simple DataTable  or an XML file (generated by another application) as a FlatDataSource for the xamPivotGrid. This should be easy I assume but I do not manage to have it work.

Using the following code doesn not make it (dt is my DataTable)

 FlatDataSource flatDataSource = new FlatDataSource()

            {

               ItemsSource = dt.AsEnumerable().ToList()

Measures = XmlaDataSource.GenerateInitialItems("AmountOfSale")*/

            };

I want something very simple to plug any Table to the xamPivotGrid. I cannot define a priori a class to serialize the dataTable (or XML file) so it is not so obivious to create the IEnumerable. Thanks for your help.