Sort the contents of the MetroGridView by clicking on the Heder title of a given column

1

Hello everyone, I have a problem, which I have been fighting for some time now. I'm using in my application MetroFramework and linq, and I noticed that MetroFramework does not have certain properties or that they do not work as they should, or so I'm not doing it right.

I do the populat in a Metrogrid and then I want to sort this grid to the click of the heder, in ascending or descending order (az and za), plus the sort property is not doing either automatically or programatically, several functions to do this, but I always return the following error when clicking the heder.

Error: Additional information: The DataGridView control must be bound to an IBindingList object to be ordered.

Can anyone help me please?

    
asked by anonymous 05.06.2017 / 11:07

0 answers