1、新建一个继承自GridView的类。

2、加一个属性,用来指定鼠标经过行时,行的css类名

3、重写OnRowDataBound实现鼠标经过行时改变行的样式的功能。主要是给<tr>增加onmouseover事件和onmouseout事件。

4、测试
=========ASPX文件=======
<zyz:SmartGridView ID="sgvList" runat="server">
</zyz:SmartGridView>

=======css文件======
.over 

参考

相关文章:

  • 2021-07-05
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2022-02-11
  • 2021-06-11
  • 2021-08-21
  • 2021-08-28
  • 2021-09-02
  • 2021-07-07
相关资源
相似解决方案