protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
{
int i = 0;
if (int.TryParse(e.Row.Cells[4].Text, out i))
{
Dqt.Reporter.BLL.admin_class AdminClassBLL = new Dqt.Reporter.BLL.admin_class();
DataSet ds = AdminClassBLL.GetList("AdminClassId='" + i + "'");
if (ds.Tables[0].Rows.Count > 0)
{
e.Row.Cells[4].Text = ds.Tables[0].Rows[0]["ClassName"].ToString();//设置该列显示
}
}
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onMouseOver", "SetNewColor(this);");