I have a DataTable with column such as # of Students and would like to sort by this in descending order. Here is my code:
DataTable
# of Students
... dt.Column
You should use [] brackets, like this :
var rows = dt.Select("","[# of Students] desc");
You can use both [] or `` syntax. Both following snippets are correct:
var rows = dt.Select("","`# of Students` desc"); var rows = dt.Select("","[# of Students] desc");