1 Reply Latest reply on May 13, 2008 11:08 AM by ntsiii

    DataGrid row move UP/DOWN

    Vimpact
      I'm trying to use an up arrow and down arrow to move the selected row of a data grid up and down. The data grid is being populated via an XML file. Anyone have suggestions on how to do this? I tried the following but it's not working quite right... any help would be greatly appreciated!

      Thanks,
      Bryan
        • 1. Re: DataGrid row move UP/DOWN
          ntsiii Level 3
          First, your dataProvider is certainly not an Object, and Object does not have the methods you are attempting to use.

          You want ArrayCollection. Note, removeItemAT returns the removed item, so call it first, then use the returned reference as the arg to addItemAt. Both calls will have the same index.

          Tracy