The selectedIndex is the index of the row in the visual object, which might not be the same as the index of the item in the data provider. You can use data.setItemAt(adg.selectedItem,data.indexOf(adg.selectedItem)).
On 10/19/07, monkeeeh <[EMAIL PROTECTED]> wrote: > > Hi everybody! > > I have big problems with ADG. I'm trying to edit ADG data. I have > titlewindow and when i close it i want to update data to ADG. > > simple example: > data.setItemAt(adg.selectedItem, adg.selectedIndex); > > this should just update selected row with same data. if i select first > row (from first group) it update that row move it to end of group and > update second row (what is actually first one because that first moves > to the end). > > Could someone show me how to change data in ADG? Please! > > Thanks! > > >

