stonyx
09-02-2006, 07:03 PM
hello i think this is something easy but don't know how to do it
what i am trying to do is to remove an item in a datagrid (_xlcdatagrid2) after there's 5 items in it
this is the code for doing it with a button.
public function removeItem():void
{
_xlcdatagrid2.removeItemAt(0);
}
so far this works but don't know what to use so it will delete the first row after a 6t row is added
what i am trying to do is to remove an item in a datagrid (_xlcdatagrid2) after there's 5 items in it
this is the code for doing it with a button.
public function removeItem():void
{
_xlcdatagrid2.removeItemAt(0);
}
so far this works but don't know what to use so it will delete the first row after a 6t row is added