SetCurrentCellAddressCore 函數的可重入調用

綁定數據在線程中
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
if (DialogResult.OK == MessageBox.Show("是否要修改", "", MessageBoxButtons.OKCancel))
{
Thread thread = new Thread(DoWork);
thread.Start();
}
public delegate void MyInvoke();
public void DoWork()
{
MyInvoke mi = new MyInvoke(LoadData);
this.BeginInvoke(mi);
}this

相關文章
相關標籤/搜索