我这样可以把数据写入GridView吗?
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Cells[0].Text = "Look";
e.Row.Cells[1].Text = "Look";
e.Row.Cells[2].Text = "Look";
}
}
这样写完后为什么网页不显示我新加的东西??
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Cells[0].Text = "Look";
e.Row.Cells[1].Text = "Look";
e.Row.Cells[2].Text = "Look";
}
}
这样写完后为什么网页不显示我新加的东西??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货