日期:2014-05-20  浏览次数:20651 次

gridView取值????????????????
GridView怎么取到子控件HyperLink的值

------解决方案--------------------
GridView1.Rows[0].Cells[0].FindControl(HyperLink的ID)
------解决方案--------------------
C# code

 if (((Label)gridList.Rows[i].Cells[3].FindControl("lblType")).Text == "TrendForTime")
{
}

------解决方案--------------------
探讨

C# code

 if (((Label)gridList.Rows[i].Cells[3].FindControl("lblType")).Text == "TrendForTime")
{
}