private void AppendGrid() { lock (obDo1) { while (true) { bool isChange = v2BLL.GetNewData(gridTable); if (isChange) { SetLabelText(this.labAllCount, gridTable.Rows.Count.ToString()); if (this.superGrid1.InvokeRequired) { this.superGrid1.Invoke(new MethodInvoker(delegate { this.superGrid1.Refresh(); // this.superGrid1.Update(); //this.superGrid1.EndEdit(); })); } else { this.superGrid1.Refresh(); // this.superGrid1.Update(); // this.superGrid1.EndEdit(); } } Thread.Sleep(2000); } } }