Datagrid分页相关 [英] Datagrid Paging Related

查看:135
本文介绍了Datagrid分页相关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个小问题.我有一个带有自定义分页的datagrid,它运行良好.现在,在网格中,我有一个超链接列,当单击重定向到另一个页面时,该列会以编辑模式显示.此功能运行良好.现在,当我返回到原始/父页面(包含datagrid的页面)时,问题是它没有显示正确的页面编号,而是显示了页面编号1的页面内容.请问如果我在第4页中又在第一个页面中我想进入同一页面.
感谢您的帮助.
感谢所有阅读此SOS呼叫的TECHS.
再见
Wire Man

Hi All,
I have one small problem. I have a datagrid with custom paging and it works all well. Now within the grid I have a hyperlink column which when click redirect to another page say in edit mode. This feature works well. Now when I come back to original/parent page ( the page containing datagrid) the problem is that it does not show the right page number rather it shows the page content of page number 1. Say what if I was in page number 4 and again i want to land up in the same page.
A help is appreciated.
Thanks to all TECHS who read this SOS call.
Bye.
Wire Man

推荐答案

在加载页面时将当前页码存储在会话变量中,请检查该变量,如果该变量为null,则显示第1页,否则显示第存储的变量.
Store the current page number in a session variable when you load the page check the variable and if it is null show page 1 otherwise show the page number of the stored variable.


这篇关于Datagrid分页相关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆