this code help me but don,t work:
foreach(GridViewRow row in gv.Rows)
{
TextBox txtTotal = row.cells[0].Controls[0].FindControl("TOTAL") as TextBox;
string value = txtTotal.Text;
}
i changed code :
ContentPlaceHolder cp = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder2");
GridView gv = (GridView)cp.FindControl("showPostrRGridView");
foreach (GridViewRow row in gv.Rows)
{
Label txtTotal = row.FindControl("IdTopic") as Label;
string value = txtTotal.Text;
lb1.Text = value;
}
thank you for help me .