I have a datagrid WinForms.NET whose data source is List<cLineItem> . cLineItem is a very simple class with properties such as units (int), description (string) and number of units (float).
In the code, I populate the list of lines and then set the data source:
dataGridView1.DataSource = lines;
This fills the grid correctly, however, despite the fact that each column in the grid has the value "Sort", when you click on the column heading, it does not sort the rows.
Jimbo source share