我想显示有关名称的数据。即按名称排序,但我的查询无法正常工作。它显示所有数据但不按顺序显示。
string select_failed_students = "SELECT * FROM awardlist_annual_view WHERE name IN ('" +
string.Join("','", student_name) +
"') ORDER BY name";
DataTable dt_failed_student = DataAccess.selectData(select_failed_students);
gazette_dataGridView.DataSource = dt_failed_student;