GridView分页问题过滤器 [英] Gridview paging problem filtre

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

问题描述

大家好,

我有一个问题,我创建了一个gridview,我正在根据用户从下拉列表中选择的内容过滤gridview的内容...我也在gridview中使用分页,它一次显示10行...现在当我从下拉列表中选择内容时,grideview内容过滤器并且如果过滤器内容超过10行,则会发生分页...并且当我单击下一页时,gridview显示的是下一页的内容,而不是过滤后的grideview的内容下一页

hi everyone,

i have a problem, i made a gridview and i am filtering the grideview content on the bases of selected content by the user from dropdownlist... i am also using paging in the gridview, it shows 10 rows at a time...now when i select the content from the dropdownlist the grideview content filters and if the filter content is more than 10 rows paging occurs...and when i click on the next page the gridview shows the content of next page but not the content of filtered grideview next page??

推荐答案

将过滤条件保存在会话或视图状态中,并使用与加载页面更改的第一页相同的方法.
Hold your filtering criteria in a session or viewstate and use the same method that used for loading the first page on page change.


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

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