62,046
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.Cells.Count > 5)
{
Response.Write(e.Row.Cells[6].Text);
//在这报错,指定的参数已超出有效值的范围。
参数名: index 但是如果e.Row.Cells[6] 真超出界限就不会进到这个IF语句里来,很矛盾啊!
}
}