devexpress夸线程操作数据的解决方案

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());
        }
    }
}

posted @ 2011-04-10 18:19  ubosm  阅读(1755)  评论(0编辑  收藏  举报