Hi,
I ahve an gridview where i am displaying a balance amount of the users if the balance amount of the specific users is ZERO then i have to disable the installment link.Here is my code...It is not working for specific
this is on
GridView RowDatabound EVENT Label lblInstallments = ((Label)e.Row.FindControl("lblInstallments"));
dt = m.fillplanmapping();
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
int amt = Convert.ToInt32(dt.Rows[i]["balanceamount"].ToString());
if (amt > 0)
{
lblInstallments.Visible = true;
}
else
{
lblInstallments.Visible = false;
}
}
} Error: I am getting links to all the rows where i have a balanceamount as ZERO for row 3 & 4 how to ge this...any soln...
Join Hands Change lives
Thanks & Regards
Straight Edge Society