使用Datapager在ListView中分页 [英] Paging in ListView using Datapager

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

问题描述




我正在使用ListView绑定数据并进行分页,我正在使用DataPager

问题是当我进行搜索并单击显示的第2页或第3页时,没有pblm.但是,当我进行新搜索并且上一页位于第3页时,新结果将页号显示为3而不是1,即页号:不变.任何帮助将不胜感激.


谢谢
Chonnu

Hi,


I''m using ListView to bind data and for paging I''m using DataPager

Problem is when I made a search and click on the 2 page or 3rd its showing , no pblm. But when I made a new search and the previous page is in 3rd then the new result show the page number as 3 instead of 1 ie the page no: is not changing . Any help will be appreciated.


Thanks
Chonnu

推荐答案

您丢失了数据分页器和ListView绑定的重新初始化,我相信,请检查一下.
you are missing the re initialization of the data pager and the ListView binding I believe, check that.


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

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