如何防止在Gridview中自动滚动到顶部 [英] How to prevent auto scroll to top in Gridview
本文介绍了如何防止在Gridview中自动滚动到顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我选中gridview中的复选框时,它会自动滚动到顶部。如何防止滚动问题。
Hi,
When i checking the checkbox in gridview, It's automatically scrolling to top. how to prevent the scroll issues.
推荐答案
尝试在页面指令
MaintainScrollPositionOnPostback =true />
Try addingMaintainScrollPositionOnPostback="true"
on your page directive
<%@ Page Language="C#" MaintainScrollPositionOnPostback="true" %>
问候.. :)
Regards..:)
这篇关于如何防止在Gridview中自动滚动到顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文