Not sure if this applies to the datagrid component in Flash, but to to this in Flex 1.5 you would do:
myDataGrid.dataProvider.removeItemAt(someIndex); Spike On 3/10/06, Rodrigo Guerra <[EMAIL PROTECTED]> wrote: > my grid dataprovider is a xml (created in flash). > > the only way i can think to refresh the datagrid is associate it (again) to > the xml source (updated). like delete the node then myDG.dataProvider = > myXml (updated).... > > is this correct? > > > > > > ----- Original Message ----- > From: "Clint Tredway" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> > Sent: Friday, March 10, 2006 2:19 PM > Subject: RE: [Flashcoders] datagrid icon to delete a row. > > > Basically what you will need to do is get the id of that row and remove > it from the data populating the grid and then refresh the grid. (If I > remember correctly) ;) > > HTH > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo > Guerra > Sent: Friday, March 10, 2006 11:07 AM > To: Flashcoders mailing list > Subject: [Flashcoders] datagrid icon to delete a row. > > hi all, > > i'm using this example from phil, > http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside > a datagrid colum. (any other you can share would be appreciated) > > what i want is click in the image and delete the row. i thought the > datagrid class would provide a easy method like "removeRow(index)".. but > there isn't. > what's the code to delete a row in the datagrid. > > > thanks! > > > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- -------------------------------------------- Stephen Milligan Do you do the Badger? http://www.yellowbadger.com Do you cfeclipse? http://www.cfeclipse.org _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com