I want to sort my DataGridView.
I tried this:
Grid.DataSource = PlayerList;
Grid.Refresh();
and this:
BindingSource bs = new BindingSource();
bs.DataSource = PlayerList;
Grid.DataSource = bs;
Every time I get an error saying:
DataGridView control must be bound to an IBindingList object to be sorted.
What do I need to do to get it working?
If you don’t want to implement
IBindingListthen useList<T>Sort method.