asp.net Listview中的Datapager问题? [英] Datapager problem in asp.net Listview?

查看:164
本文介绍了asp.net Listview中的Datapager问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一个列表视图来显示图像。然后使用数据寻呼机分隔不同页面中的图像,但问题是它没有正确显示...示例:我向listview添加了23个图像并设置pagesize为10。 .it在页面加载中显示前10个图像。单击下一个按钮后显示最后三个图像。但它错过了10个图像..如何解决这个问题?

i use one listview for display the images.then use the data pager to seperate the images in different pages but the problem is its not showing properly...Example:i added 23 images to listview and set the pagesize is 10..it display first 10 images in page load.after click next button it shows last three images. But it miss the 10 images..How to solve this problem?

推荐答案

你有没有将ListView的GroupItemCount属性设置为1...它将显示一个图像在一行,你的datapager pagesize =10属性将一次显示10个图像。



如果你想要的话,那么一次显示10个图像,一行显示两个图像,Listview的GroupItemCount属性变为GroupItemCount =2,datapager的pagesize属性变为pagesize =10。
Have u set your ListView's GroupItemCount property to "1"...It will display one image at one row and your datapager pagesize="10" property will display 10 images at a time .

For exa. if you want to show 10 images at time and two images on one row your GroupItemCountproperty of Listview becomes GroupItemCount="2" and datapager's pagesize property becomes pagesize="10.


这篇关于asp.net Listview中的Datapager问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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