In my app, I have a datagrid, and I allow poeple to delete items from
this grid. If a datagrid where to have 5 items, and the user selected
the 3rd item and hits delete, it removes the first item in the
datagrid instead of the selected item.

partyDG.dataProvider.removeItemAt(agentDG.selectedItem) should remove
it at the selectedItem, but it always removes it from the datagrid at
the top. However it does not delete it from the database, just removes
it from the display.

Is there anyway I can fix this.

Here is my function.

                  // DELETE PARTY FUNCTIONS
                  public function DeletePartyModdeletePartyQry(fileNum, id, ptype){
                              DeletePartyMod.deletePartyQry(fileNum,id,ptype);}
                             
                  public function DeletePartyModdeletePartyQryResult(result){
                  partyDG.dataProvider.removeItemAt(agentDG.selectedItem)
                 
                  }





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to