使用缓存对网格排序 [英] Sorting a grid using Cache

查看:50
本文介绍了使用缓存对网格排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有一个关于如何使用缓存对网格进行排序的查询.在我的表单中,一旦单击文本框控件和最后的保存按钮,它们将被保存到数据库和缓存中,并且还应显示在网格视图中.并应通过缓存对网格视图进行排序.

任何人都可以通过代码示例帮助我吗

预先感谢您
问候
Sharath

Hai everyone

I have a query of how to sort a grid using cache. in my form ill be having textbox controls and a final save button once they click save the data vl be saved into the database and the cache and also should display in the grid view. and sorting of that grid view should be done by cache.

can any one help me out in this with code example

Thanking you in advance
Regards
Sharath

推荐答案

在缓存中添加数据的同时,在dataview&与网格绑定时使用dataview.通过数据视图进行排序.请参考此链接以使用dataview.

http://msdn.microsoft.com/zh-cn/library/system.data.dataview.sort%28v = vs.71%29.aspx
While adding data in cache add same data in dataview & while binding with grid use dataview. Do sorting through dataview. Please refer this link for dataview use.

http://msdn.microsoft.com/en-us/library/system.data.dataview.sort%28v=vs.71%29.aspx


请参阅以下链接,与您的要求类似:
http://www.vbforums.com/showthread.php?t=547186 [ ^ ]
http://techron.blogspot.com/2007/10/sorting- gridview-that-is-detached-from.html [ ^ ]
See below link, similar requirement as yours:
http://www.vbforums.com/showthread.php?t=547186[^]
http://techron.blogspot.com/2007/10/sorting-gridview-that-is-detached-from.html[^]


这篇关于使用缓存对网格排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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