<font color=blue>private void DataGridView1_CellEndEdit(object sender,DataGridViewCellEventArgs e){if(e.ColumnIndex==0){ DataGridView1.Rows[e.RowIndex].Cells[1].Value = String.Empty;}else if(e.ColumnIndex==1){ DataGridView1.Rows[e.RowIndex].Cells[0].Value = String.Empty;}} </font>