
asp.net gridview控件怎么让点击某一行之后突出显示
2个回答
展开全部
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
//设置鼠标悬停行的颜色 光棒效果
e.Row.Attributes.Add("onMouseOver", "Color=this.style.backgroundColor;this.style.backgroundColor='lightBlue'"); //光棒效果为浅蓝色
e.Row.Attributes.Add("onMouseOut", "this.style.backgroundColor=Color;");
}
{
//设置鼠标悬停行的颜色 光棒效果
e.Row.Attributes.Add("onMouseOver", "Color=this.style.backgroundColor;this.style.backgroundColor='lightBlue'"); //光棒效果为浅蓝色
e.Row.Attributes.Add("onMouseOut", "this.style.backgroundColor=Color;");
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询