# Remove from DataGrid

**URL:** <https://forum.kirupa.com/t/remove-from-datagrid/255732>\
**Category:** flash\
**Created:** [March 26, 2008, 1:13pm UTC](https://forum.kirupa.com/t/remove-from-datagrid/255732 "2008-03-26T13:13:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Germaris](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Germaris](https://forum.kirupa.com/u/Germaris)\
**Post date:** [March 26, 2008, 1:13pm UTC](https://forum.kirupa.com/t/remove-from-datagrid/255732/1 "2008-03-26T13:13:10Z")

</div>

Hi there!

DGBUY is my DataGrid  
mydgdp is an array and is the DataProvider of DGBUY

How can I remove an item I select in DGBUY?  
I tried:  
DGBUY.removeItemAt.selectedItem.index;  
but it doesn’t work.

I thank you in advance for your reply.

Best,  
Gerry
