Hi
I am using a List of (T) which is bound to a BindingSource component, and this component is bound to a grid, however when I have come to try and sort the list programmatically, I get the following error:
DataGridView control cannot be sorted if it is bound to an IBindingList that does not support sorting.
The thing is I really, really need the grid to be sortable programmatically by any means necessary, if you have any suggestions I would appreciate hearing them.
Code Used to Sort (Line that produces the error):
Code:Me.dgvuserdetails.Sort(Me.dgvuserdetails.Columns(5), System.ComponentModel.ListSortDirection.Descending)




Reply With Quote