Mira a ver si esto te funciona.. no lo he probado
Código HTML:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script language="javascript">
function RemoveRow(index)
{
var parent = document.getElementById(index).parentNode;
parent.removeChild(document.getElementById(index));
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table border="1" id="table">
<tr id="row1">
<td><input type="Button" value="Remove Row" onclick="RemoveRow('row1')" /></td>
<td>Col2</td>
<td>Col3</td>
</tr>
<tr id="row2">
<td><input type="Button" value="Remove Row" onclick="RemoveRow('row2')" /></td>
<td>Col2</td>
<td>Col3</td>
</tr>
<tr id="row3">
<td><input type="Button" value="Remove Row" onclick="RemoveRow('row3')" /></td>
<td>Col2</td>
<td>Col3</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Salu2,
Jars