public class testForm:Form
{
...
...
public void test()
{
        System.Windows.Forms.MethodInvoker CallToRefreshGrid = new System.Windows.Forms.MethodInvoker (this.RefreshGrid);
        this.BeginInvoke(CallToRefreshGrid);
   
}

private void RefreshGrid()
  {
   dataGrid1.DataSource = appData.Tables[0].DefaultView;
   dataGrid1.Refresh();
  }

}

相关文章:

  • 2021-11-07
  • 2021-11-18
  • 2021-08-16
  • 2021-07-17
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2021-12-07
  • 2021-11-25
  • 2021-11-07
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案