how can i change the back color on mouse out to the color specified in gridview

来源:互联网 发布:医药类数据库有哪些 编辑:程序博客网 时间:2024/04/29 17:57
http://www.thescripts.com/forum/thread614321.html

Quote:
Originally Posted by
how can i change the back color on mouse out to the color specified in
the grid view declaration
>


you can do it using css

..row1
{
background: #CECECE;
}
..row2
{
background: #DEDEDE;
}
..row1:hover, .row2:hover
{
cursor: pointer;
background-color: orange;
}


so, in this case your grid coding should be

<RowStyle CssClass="row1"></RowStyle>
<AlternatingRowStyle CssClass="row2"></AlternatingRowStyle>


http://forums.asp.net/thread/1638409.aspx
原创粉丝点击