BindingContext[dataGridView1.DataSource].SuspendBinding(); dataGridView1.DataSource = null; dataGridView1.DataSource = XXX索引 -1 没有值.; BindingContext[dataGridView1.DataSource].ResumeBinding();