----- Original Message ----- 
From: "kalpkat9" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, October 31, 2007 2:11 AM
Subject: [flexcoders] Deleting multiple line items in a datagrid


> for deleting/removing a line item for a datagrid we can use:
> ac.removeItemAt(dg.selectedIndex);
> 
> what if we select multiple lines in the datagrid and want to delete 
> them? could someone please let me know if there is there a command for 
> that? thank you.

You'll kick yourself..  ;-)

something like:

for (var:selectedItem:Number in dg.selectedIndices){
    ac.removeItem(selectedItem);
}

Reply via email to