GridView怎么实现鼠标放上去变色 如题.鼠标放在某一单元格里颜色改变 怎么实现 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在 RowDataBound 事件里 protected void ss1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //鼠标经过时,行背景色变 e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#E6F5FA'"); //鼠标移出时,行背景色变 e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'"); } } 关于gridview 删除 跟 编辑 swf 网站兼容问题 图片显示不了 数据库的一点问题 网站根目录下添加地址栏图标后在IE下没有效果呢? 哥们请进!ID.innerText = ""; 与 ID.removeChild(ID.lastChild );有什么区别? C#中没有找到适合的方法来重写问题 高分请教:水晶报表导pdf问题!!!!!!!!! 如何选择ComBox内容后即使更新页面内容? 求助,求petshop源码 IComparer.Compare 的疑问 为什么gridview模板列取不到DropDownList的值?
protected void ss1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//鼠标经过时,行背景色变
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#E6F5FA'");
//鼠标移出时,行背景色变
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
}
}