可以呀,在RowDataBound中自定义好了。
参考:
protected void gridview1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//这里放入自定义的数据库操作 Label label1= (Label)e.Row.FindControl("label2"); label1.Text="数据库返回值"
}
}
参考:
protected void gridview1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//这里放入自定义的数据库操作 Label label1= (Label)e.Row.FindControl("label2"); label1.Text="数据库返回值"
}
}
==========================
那我问您,您这样还干嘛用GridView.
您了解过GridView的简单用法吗?
像你说的那种需求你到可以动态生成Table