|
发表于 2020-8-15 18:45:01
|
显示全部楼层
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if ((e.Row.RowType == DataControlRowType.DataRow))
{
//e.Row.Cells[1].Visible = false;
//变色
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#FFC080'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#ffffff'");
}
} |
|