0 Replies Latest reply on Mar 2, 2010 1:07 AM by bornaeon

    DataGrid in a DataGrid - Flash Builder 4 Beta 2

    bornaeon

      My dear friends, hi...

      There is a problem here:


      I have a Flex and WCF webservice project...

      One part of my project is look like this:

      Dorj.jpg


      I wonder what kind of controls should I use for this part? Something like Grids, Lists or something like Repeater in .Net projects!

      What is your Idea?!


      And if I must use DataGarid, I think I have to use nested DataGrids. How could I do this?

      U know? I have 2 DataGrid:


           <mx:DataGrid x="10" y="10" id="DG1"
                       creationComplete="dataGrid_creationCompleteHandler(event)"
                       dataProvider="{GetSingleClassResult.lastResult}">
              <mx:columns>
                  <mx:DataGridColumn headerText="Childs">
                      <mx:itemRenderer>
                          <fx:Component>                       
                              //something here
                          </fx:Component>
                      </mx:itemRenderer>
                  </mx:DataGridColumn>
                  <mx:DataGridColumn headerText="FirstName" dataField="FirstName"/>
                  <mx:DataGridColumn headerText="ImageUrl" dataField="ImageUrl"/>
                  <mx:DataGridColumn headerText="LastName" dataField="LastName"/>
              </mx:columns>
          </mx:DataGrid>


      and


           <mx:DataGrid   id="DG2"
                       dataProvider="{GetSingleClassResult.lastResult.Childs}">
              <mx:columns>
                  <mx:DataGridColumn dataField="ChileName" />           
              </mx:columns>
          </mx:DataGrid>


      But if I take my DG2 DataGrid and put it in first DataGridColumn of DG1, between  <fx:Component> Tag, I'll have this error:

      1120: Access of undefined property GetSingleClassResult.


      What should I do?!