1 Reply Latest reply on Jul 27, 2010 8:17 AM by saisri2k2

    Create custome column issue

    Benoitcn

      I want to dynamically create a mutil layer headers column by resolve the property dataprivoder of the DataGrid.

      The issue is I create a class extended dataGridColumn that can't access the dataprivoder of the datagrid.

      Anybody has any better idea ?

       

      The dataprivoder like this:

       

        public static var xmlData:XML =
         <data>
          <row Contray="中国" Region="华北地区" Territory="天津市" City="天津市" Territory_Rep="刘伟" Actual="44985" Estimate="45000"/>
          <row Contray="中国" Region="华北地区" Territory="天津市" City="天津市" Territory_Rep="张君秋" Actual="44913" Estimate="45000"/>
          <row Contray="中国" Region="华北地区" Territory="天津市" City="天津市" Territory_Rep="孙伟丽" Actual="55498" Estimate="40000"/>
          <row Contray="中国" Region="华北地区" Territory="天津市" City="天津市" Territory_Rep="张萌萌" Actual="38805" Estimate="40000"/>
           ...

           ...

           ...
         </data>;

       

       

      I want to create a column like this:

       

                                                    

                                                 

                                                                         Contray

                                                            Region1 Region2 Region3 ...

                                               Territory1 Territory2 Territory3 Territory4 Territory5 ...

         Name    Actual         City1 City2 City3 City4 City5 City6 City7 City8 City9 City10  ...

          Jone      5300            NY.   SF.   ....

          ...

          ...