devexpress夸线程操作数据的解决方案
在窗体实例化直接加一个
DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
代码 就OK了
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace WindowsApplication1 {
static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
DevExpress.UserSkins.OfficeSkins.Register();
DevExpress.UserSkins.BonusSkins.Register();
DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true;
Application.Run(new Form1());
}
}
}