Remove from DataGrid

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