4 Replies Latest reply on Jul 8, 2006 9:53 AM by csenen

    datagrid rows

    csenen
      How can I access the rows of a datagrid
        • 1. Re: datagrid rows
          Flex harUI Adobe Employee
          Because item renderers need to be fully data-driven (all visual aspects are derived from the .data property) and because item renderers are recycled (the renderer that displays the first row is the same instance that will display the nth row when scrolling), normally we recommend that you make a custom renderer, and then you don't need row/column access.

          Therefore, there isn't a public API for it. You can subclass DataGrid and hand out renderers from the .listItems arrays if you want.
          • 2. Re: datagrid rows
            csenen Level 1
            Thank you

            But what happen if I want to add or delete rows or travel for the rows looking for some
            • 3. Re: datagrid rows
              Flex harUI Adobe Employee
              Rows are added/deleted by adding/removing from the dataprovider, not the datagrid. IOW, you manipulate the model (dataprovider) and the view (datagrid) responds accordingly.


              • 4. datagrid rows
                csenen Level 1
                Thank you

                The itemRender has to be defined for each column? I need to know if the cell content has changed.