1 Reply Latest reply on Jan 30, 2011 10:16 PM by Flex harUI

    Dynamic datagrid column based on rowIndex

    iamcootis Level 1

      I am passing objects into a datagrid that have a rank variable.  Before I place the objects into the datagrid, I sort upon rank so the objects will show in the datagrid sequentially.


      What I am wanting to do is be able to drag-and-drop the rows, and I want the rank variable to change depending on which row the object is in.


      I thought I had this feature working by setting rank to the dataProvider index when a row is dropped. This does work intially, but gets messed up when a user decides to sort any row in the grid.


      Does anyone have any suggestions on how I can get this to work?