Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to loop through all the rows in foreach. I tried like this but this is not working

C#
GridView1.AllowPaging = false;
GridView1.DataBind();

foreach (GridViewRow item in GridView1.Rows)
{
    CheckBox chkBox = (CheckBox)item.FindControl("cbstrChild");

    ..............

}

GridView1.AllowPaging = true;
GridView1.DataBind();
Posted
Updated 20-May-12 23:36pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900