用鼠标复制没问题,一用ctrl+c复制datagrid中的单元格的数据就报错!

解决方案 »

  1.   

    出以下錯誤提示:
    An unhandled exception of type'System.Threading:ThreadStateException'occurred in
    in system.windows.forms.dll.
    Additional information:The current thread must set to Single Apartment(STA) mode before OLE calls can be made.Ensure that your Main function has STA Thread Attribute. ed on it.請問該如何解決?
      

  2.   

    出以下錯誤提示:
    An unhandled exception of type'System.Threading:ThreadStateException'occurred in
    in system.windows.forms.dll.
    Additional information:The current thread must set to Single Apartment(STA) mode before OLE calls can be made.Ensure that your Main function has STA Thread Attribute. ed on it.帮帮忙呀!