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.
下面的代码引发错误
DataRow[] dr = dt.Select("" + ColumnName + "='" + strLetter + "'" + " order by asc");
错误是
'order' 运算符后缺少操作数。
没有要排序的列名,您需要传递需要排序的列名
DataRow[] dr = dt.Select("" + ColumnName + "='" + strLetter + "'" + " order by " + ColumnName + " asc");