private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e){if (((DataGridView)sender).CurrentCell.ColumnIndex == 1)e.Cancel = true;}