I need code that will delete the line highlighted by a user in a MSFlexGrid.

I've tried :

MSFlexGrid1.removeItem

But the program is looking for an index number.