# of Students
과 같은 열을 가진 DataTable
이 있으며 내림차순으로 정렬하고 싶습니다. 내 코드는 다음과 같습니다.DataTable.Select()를 사용하여 특수 문자가있는 열에 액세스하는 방법?
...
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");
이름에 특수 문자가있는 경우 어떻게이 열에 액세스 할 수 있습니까?
남자 나는 가짜입니다! 그게 내게 더 분명했을거야. 감사! – DJTripleThreat