在鼠标停留时如何改变GridView某一行的颜色

song661222 2008-07-19 12:13:36
谢谢 _________
...全文
38 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
song661222 2008-07-19
  • 打赏
  • 举报
回复
xiexie
song661222 2008-07-19
  • 打赏
  • 举报
回复
up
cychris 2008-07-19
  • 打赏
  • 举报
回复
protected void gvdegreetype_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='GhostWhite'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='white'");
}
}

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧