1、在<head>里面加上

<script type="text/javascript">

function s()

{

 var t = document.getElementById("<%=GridViewID%>");

 var t2 = t.cloneNode(true)

 for(i = t2.rows.length -1;i > 0;i--)

 t2.deleteRow(i) 

 t.deleteRow(0) 

 a.appendChild(t2)

}

window.onload = s

</script>

2、在“GridView”前后加上
<div ></div>
<div style="overflow-y: scroll; height: 120px">
      <asp:GridView>
      </asp:GridView>
</div>

相关文章:

  • 2021-09-17
  • 2021-12-31
  • 2021-12-24
  • 2021-10-28
  • 2021-09-17
  • 2021-10-15
猜你喜欢
  • 2021-11-07
  • 2021-12-24
  • 2021-09-17
  • 2022-01-02
  • 2022-01-02
  • 2022-01-02
相关资源
相似解决方案