且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在绑定时对来自数据库的数据进行排序

更新时间:2021-12-11 02:08:58

我想最简单的方法是使用 ORDER BY子句从数据库中获取数据时对数据进行排序 [ ^ ]。



其他选项是对已经提取的数据进行排序,但为了做到这一点,我们需要知道数据存储在程序中的结构类型。是在数据表,POCO等等。
I guess the easiest way is to sort the data when fetching it from the database using an ORDER BY clause[^].

Other option is to sort the data already fetched but in order to do that we'd need to know in what kind of structure the data is stored in your program. Is it in data tables, POCO's and so on.


只需数据视图即可。

请看链接:

dataview sort

希望它有所帮助:)
Simply dataview will work.
see the link:
dataview sort
Hope it helps :)