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
本文共 246 字,大约阅读时间需要 1 分钟。
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
转载于:https://www.cnblogs.com/ZXdeveloper/p/3808300.html