.fixedHeaderTr  
    {  
        background-color:whitesmoke;  
        z-index:10;  
        position:relative;  
        top:expression(this.offsetParent.scrollTop);  
}

 

gridview中:

     <HeaderStyle CssClass="fixedHeaderTr" />
用css   比较好

---------------------第2种方法

 

 

 

CS文件:

 

效果图:


用CSS 固定gridview标题列 

 

相关文章:

  • 2021-05-17
  • 2021-06-12
  • 2021-07-25
  • 2021-08-04
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案