Loading

gridview里找到控件

 for (int i = 0; i < gvIncomeYG.Rows.Count; i++)
{
    Label lblYG_DYYGSR_BHS = ((Label)gvIncomeYG.Rows[i].Cells[18].FindControl("YG_DYYGSR_BHS"));
}
YG_DYYGSR_BHS是前台的控件的ID

gvIncomeYG是gridview的ID
posted @ 2014-06-25 16:18  眾尋  阅读(164)  评论(0编辑  收藏  举报