I've a gridview in which there is an add and remove row facility.I want to knoow how could i remove a particular gridview row when corresponding remove button is clicked.
I've searched everywhere but nothing find quite useful to me
Heres my code
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="gdlbtnRemove" runat="server"
OnClientClick="RemoveRow(this)">Remove</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
This is my javascript code
<script type="text/javascript">
function RemoveRow(rowindex,objref)
{
var row=objref.parentNode.parentNode;
row.Remove();
}
</script>
Im new to javascript........