1
Answer

my add row code is working but delete row code is not work

SAIRAJ MORE

SAIRAJ MORE

8y
223
1
 my add row code is working but delete row code is not work so please help me..?
 
 
 
 
protected void btnAddRowNonTaxRevenue_Click(object sender, EventArgs e)
{
for (int i = 2; i < 11; i++)
{
HtmlTableRow tr = ((HtmlTableRow)this.FindControl("ntrNTR" + i));
if (tr.Visible == false)
{
tr.Visible = true;
break;
}
}
}
protected void btnRemoveRowTaxRevenue_Click(object sender, EventArgs e)
{
for (int i = 2; i > 11; i++)
{
HtmlTableRow tr = ((HtmlTableRow)this.FindControl("trTR" + i));
if (tr.Visible == false)
{
tr.Visible = false;
break;
}
}
}
Answers (1)