Skip to content

Replies

0
Sven
Sven answered on Mar 25, 2011 3:23 PM

 

Hi,

thanx for the fast answer.

May be with an example I can show you the problem:

PythonCode:

 

        testDataMulitDimTuple = (
            ( '','','','Men','Men','Men','Men','Men','Women','Women','Women','Women','Women' ),
            ( '','','','Case','Percentage','Mio','Due Percentage','Index','Case','Percentage','Mio','Due Percentage','Index' ),
            ( 'All','','',58283,100,34.84,49,100,55224,100,35.66,51,100),
            ( 'All','Age','',4591,8.3,2.88,52,105,5511,7.5,2.69,48,95),
            ( 'All','Age','14 - 19 years',8211,15,5.23,51,104,9732,13.9,4.97,49,96),
            ( 'All','Age','20 - 29 years',10215,15.4,5.37,51,103,10081,14.4,5.15,49,97)
        )

        o_flatDataSource = FlatDataSource()
        o_flatDataSource.ItemsSource = testDataMulitDimTuple
        dataGrid.DataSource=o_flatDataSource

 

With this I get an error: ArgumentException: An item with the same key has already been added.