2 Replies Latest reply on Jul 20, 2010 7:59 AM by rtalton

    Set item renderer of AdvancedDataGrid, any difference?

    hezjing Level 1

      Hi

       

      May I know what is the difference between the following two ways of setting item renderer in an AdvancedDataGrid?

       

      <mx:AdvancedDataGrid>
        <mx:columns>
          <mx:AdvancedDataGridColumn id="regionCol" dataField="Region"/>
        </mx:columns>
        <mx:rendererProviders>
          <mx:AdvancedDataGridRendererProvider column="{regionCol}" renderer="my.RegionRenderer"/>
        </mx:rendererProviders>
      </mx:AdvancedDataGrid>
      

       

      <mx:AdvancedDataGrid>
        <mx:columns>
          <mx:AdvancedDataGridColumn dataField="Region" itemRenderer="my.RegionRenderer"/>
        </mx:columns>
      </mx:AdvancedDataGrid>