you can also delete the row in javascript:
function delrow(rowindex)
{
var gridID=document.getElementById("<%=InjGrid.ClientID %>");
gridID.deleteRow(rowindex+1);
document.getElementById ("<%=txthidnoofrows.ClientID %>").value=gridID.rows.length-1;
return false;
}