Hello,
I open the window containing RadGridView as follows:
new System.Threading.Thread(delegate () {
FormReports FormReports = new FormReports(); FormReports.ShowDialog();}).Start();When trying to copy data from the grid (right click -> copy) error message pops up:
An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dllAdditional information: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.In this case I can't avoid new thread when calling new form.
How to solve it?
