编码使用ASP.NET C#. 我有一个gridview,有1000条记录,并且我正在对行之一进行内联编辑. 在单击更新"时,我希望网格位于回发发生之前的确切x y位置. 如果您按照使用Page指令MaintainScrollPositionOnPostback="true"的思路进行思考,不,它对我没有帮助 最佳方法是什么?
The coding is in ASP.NET C#. I have a gridview, with say 1000 records and I am inline editing one of the rows. On Clicking Update, I would like my Grid to be on the exact x y position it was on before the postback happened. If you are thinking along the lines of using the Page directive, MaintainScrollPositionOnPostback="true", no, it didnt work for me What is the most optimal method?
推荐答案使用 UpdatePanel 控件包装网格.
另一种方法是像使用 jqGrid 组件那样使用ajax.
Another way would be to use ajax instead like using the jqGrid component.
更多推荐
在ASP.NET中回发时保持水平和垂直ScrollPosition
发布评论