排序数据表 [英] Sorting a datatable
本文介绍了排序数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在C ++/CLI模块中定义了一个内部数据表,用于保存人员ID和人员名称.我用它贡献了更大数据网格的两列.
它按人名排序.
我可以按编号顺序引用它而不重新加载它吗?
I have an internal datatable defined in a C++/CLI module to hold person ID and Person name. I use it to contribute two columns of a larger data grid.
It is sequenced by person name.
Can I reference it in number order without reloading it?
推荐答案
调用数据表的Select
方法进行排序.请参见MSDN 此处 [此处 [ ^ ]
Call the Select
method of the datatable to sort. See MSDN here[^] and here[^]
这篇关于排序数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文