遍历GridView

foreach (GridViewRow row in GridView1.Rows)
            
{
                CheckBox cb 
= (CheckBox)row.FindControl("CheckBox1");
                
if (cb.Checked == true)
                
{
                    Response.Write(row.Cells[
1].Text+"--------------");
                }

            }
posted @ 2014-09-01 16:05  Jakin.zhou  阅读(393)  评论(0编辑  收藏  举报