如何根据其列值之一对Gridview排序? [英] How can i sort a gridview on the basis of one of its columns value?
本文介绍了如何根据其列值之一对Gridview排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要根据其列值之一(日期)对gridview进行排序.请让我知道我该如何做到这一点.我只想在将值绑定到gridview之前对数据进行简单的升序"排序.
在此先感谢!
Hi All,
I need to sort a gridview on the basis of one of it''s columns value (Date). Please let me know how can i achieve this. I just want simple "ASCENDING" ordering of data just before binding values to gridview.
Thanks in Advance!
推荐答案
在按钮上单击仅重新绑定网格.并在查询中使用Asc作为Date
或者您可以检查此链接:
链接网格视图排序示例 [
On button click just rebind the grid. and in your query use Asc for Date
Or you can check this link:
Link grid View Sorting Example[^]
这篇关于如何根据其列值之一对Gridview排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文