Sort Metrogridview content by clicking on the Heder title of a particular column

Asked

Viewed 52 times

1

Hey, guys, I got a problem, I’ve been fighting for a while. I am using in my application Metroframework and Linq,and noticed that Metroframework does not have certain properties or that they do not work as it should be, or I am not doing it correctly.

I do the populat on a Metrogrid and then I want to sort this grid at the click of the heder, in ascending or descending order (a-z and z-a), but the Sort property is not doing either automatically or programmatically, I’ve done several functions to do this, but always returns me the following error when clicking on the heder .

error: Additional information: The Datagridview control must be linked to an Ibindinglist object to be ordered.

Can someone please help me?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.