Exemple #1
0
        void BindData(IList<BaiDuResultInfo> datasource)
        {
            if (dgvResult.InvokeRequired)
            {
                BindDataDelegate dlg = new BindDataDelegate(BindData);

                this.Invoke(dlg, datasource);
            }
            else
            {
                dgvResult.DataSource = datasource;
            }
        }
Exemple #2
0
        void BindData(IList <BaiDuResultInfo> datasource)
        {
            if (dgvResult.InvokeRequired)
            {
                BindDataDelegate dlg = new BindDataDelegate(BindData);

                this.Invoke(dlg, datasource);
            }
            else
            {
                dgvResult.DataSource = datasource;
            }
        }
Exemple #3
0
 public void SetTarget(GridView adg, BindDataDelegate aBindData1)
 {
     BindData1 = aBindData1;
     _dg = adg;
     //邦定事件
     //_dg.DataBinding += new System.EventHandler(this.zxDataBinding);
 }