I was writing a thin client application where I had to implement some efficiency-oriented business logic, and encountered the problem, that the generic collection of custom data objects can’t be sorted in the DataGridView by simply clicking on the column headers. I started to google up solutions, but either they were for ASP, or they were incomplete, some of them were not usable at all.
This error is indicated by the following exception message: "Cross-thread operation not valid: Control 'AnyControl' accessed from a thread other than the thread it was created on."
Ever got tired of rewriting the same 10-15 lines of Singleton Object implementation code for each class U use it? Met the flexibility of the inherited static member variables, sparks of the overridable static methods?