DataGrid列头固定并不需要非常麻烦,在我看来,只需要写一个样式即可。
<style type="text/css">
  .FixedHead
  {
   position:relative;
   top:expression(this.offsetParent.scrollTop);
  }
  .FixedDiv
  {
   height:100px;
   overflow-y:scroll;
   }
</scyle>
然后在DataGrid的<headerStyle>里引用此样式
<div class="FixedDiv">
<asp:DataGrid ></HeaderStyle>
 </asp:DataGrid>
</div>

相关文章:

  • 2021-09-23
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
猜你喜欢
  • 2022-12-23
  • 2021-08-02
  • 2021-06-22
  • 2022-01-26
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案