代码:
class Generic_Course
{
public Generic_Course() { }
public Generic_Course(int courseId, string courseName, int classHour, string teacher)
{
this.CourseId = courseId;
this.CourseName = courseName;
this.ClassHour = classHour;
this.Teacher = teacher;
}
public int CourseId { get; set; }
public string CourseName { get; set; }
public int ClassHour { get; set; }
public string Teacher { get; set; }
}
Generic_Course course1 = new Generic_Course() { CourseId = 10002, CourseName = "数据库开发", ClassHour = 5, Teacher = "常老师" };
Generic_Course course2 = new Generic_Course(10005, "高级进阶", 33, "王老师") { };
List<Generic_Course> courseList = new List<Generic_Course>() { course1, course2, };
dataGridView1.DataSource = courseList;
列标题为英文的,怎么设置为中文的呢?