I am having problems while sorting a DGV. At the moment the glyph (triangle) shows but is not enabled to allow a sort on the column. It looks like the header is not enabled? Could this be because the data is bound to a generic list? The properties that I have set are (otherwise assume default). Any help appreciated
Age is a consequence of experience
Code:
dgv.ReadOnly = false;
dgv.RowHeadersVisible = false;
dgv.Columns["SortColID"].SortMode = DataGridViewColumnSortMode.Automatic;
dgv.Sort(dgv.Columns["SortColID"], ListSortDirection.Descending);
Age is a consequence of experience