我有一个DataTable
with 列,例如# of Students
并且想按降序排序。这是我的代码:
...
dt.Columns.Add(new DataColumn("# of Students", typeof(string)));
// do some stuff... add records etc.
// A runtime error occurs here: "Cannot find column '# of Students'"
var rows = dt.Select("","'# of Students' desc");
// this is just fine.
rows = dt.Select("","# of Students");
如果名称中有特殊字符,如何访问此列?