void BindData(IList<BaiDuResultInfo> datasource) { if (dgvResult.InvokeRequired) { BindDataDelegate dlg = new BindDataDelegate(BindData); this.Invoke(dlg, datasource); } else { dgvResult.DataSource = datasource; } }
void BindData(IList <BaiDuResultInfo> datasource) { if (dgvResult.InvokeRequired) { BindDataDelegate dlg = new BindDataDelegate(BindData); this.Invoke(dlg, datasource); } else { dgvResult.DataSource = datasource; } }
public void SetTarget(GridView adg, BindDataDelegate aBindData1) { BindData1 = aBindData1; _dg = adg; //邦定事件 //_dg.DataBinding += new System.EventHandler(this.zxDataBinding); }