Exemplo n.º 1
0
 /// <summary>
 /// 模糊搜索事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SeekSimpleButton_Click(object sender, EventArgs e)
 {
     if (BGW2.IsBusy == false)
     {
         gridControl1.RefreshDataSource();
         BGW2.RunWorkerAsync("SearchData");
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 分页事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridViewPaging1_PagingChanged(object sender, MyPagingEventArgs e)
 {
     if (BGW2.IsBusy == false)
     {
         gridControl1.RefreshDataSource();
         BGW2.RunWorkerAsync("SearchData");
     }
 }