Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试找到一种方法来对数据表进行自定义排序。
我有一个逗号分隔的字符串列表,例如“John,Jake,Joe,Julie”,我在数据表中的实际记录排序为:Jake,Joe,John,Julie
如何根据我的列表更改数据表排序?
提前致谢
If you don't need the DataTable, you could do LINQ to CSV. See this and this.
我假设这是家庭作业,所以我将描述一个算法并让你实现它;-)
对于逗号分隔列表中的每个名称