How do you enable Sorting in a DataGridView with an assigned DataSource?
问题 On several recommendations, I started to assign a DataSource to my DataGridView instead of using DataGridView.Rows.Add(...) . This is convenient since my data source is already a big list which doesn't change (much). However, when I use the DataSource assignment, it becomes impossible to sort the columns. class MyGridView : DataGridView { private List<Person> m_personList; private class Person { public string FirstName { get; set; } public string LastName { get; set; } public Person(string