1 Reply Latest reply on Aug 24, 2010 2:27 PM by =VA=FyreHeart

    When to use the DataGrid (and not the AdvancedDataGrid)

    JoshBeall Level 1

      Hi All,


      I've got a new project I'm working on and I've just been using the plain ol' DataGrid to display a grid of data.  But I understand that with Flex 3 they introduced the "AdvancedDataGrid" which is, erm, more advanced.  Hence the name.


      Is there any reason why I might want to continue using the DataGrid?  Or should I convert my existing DataGrid to an AdvancedDataGrid?  I think that it should be a pretty easy conversion, just change a few tag names.



        • 1. Re: When to use the DataGrid (and not the AdvancedDataGrid)

          The AdvancedDataGrid has more overhead than the DataGrid. If your application is sensitive to slowdown, you'd want to stick with the DataGrid unless you specifically need the features of the ADG (multi-column sorting, grouping, cell styles, etc.)


          The notable exception is, in my experience, using the ADG's styleFunction callback is faster than applying an ItemRenderer to the datagrid. So if you need to style individual cells, the ADG is the way to go even if you don't need the additional functions.