How to delete a relationhip onInsertRow grid event. Need help

I need to delete the inserted row in relationship grid event-Oninsertrow.