我想在此ASP.NET代码中按升序对数字进行排序,我该如何处理我的代码 [英] I want to sort the number in ascending order in this ASP.NET code how can I do my code is
本文介绍了我想在此ASP.NET代码中按升序对数字进行排序,我该如何处理我的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过在此代码行中提升CompanyID的数量来订购
我尝试了什么:
DataRow [] RowslstAvailableSuppliers = dtAllSupplier.Select(CompanyID not in(+ oCompanyBO.SelectedSupplierIDs.ToString()+));
order by ascending the numbers of CompanyID in this code line
What I have tried:
DataRow[] RowslstAvailableSuppliers = dtAllSupplier.Select("CompanyID not in (" + oCompanyBO.SelectedSupplierIDs.ToString() + ") ");
推荐答案
假设返回您想要的行,请尝试:
Assuming that returns the rows you want, try:
...Select("CompanyID not in (" + oCompanyBO.SelectedSupplierIDs.ToString() + ") ORDER BY CompanyID ASC");
这篇关于我想在此ASP.NET代码中按升序对数字进行排序,我该如何处理我的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文