delete a row in a subgrid

its possible use the event deleteRow on the sub grid? or what can i do if i want to delete a row on the sub grid?

You should get sub grid object and call deleteRow(rowId) method:

main_gird.cellById(rowId,cellIndex).getSubGrid().deleteRow(sub_grid_row_id);

i have been trying with the code that you suggest but it did not work as i understood, have you have a example,please.

but it did not work as i understood
How exactly it doesn’t work? Does code return any errors?