Regarding my use of a DataGridView with BindingList, I was to disable editing current rows, but allow adding new rows. The issue I have is that when I disallows edits, this see
Rather than fight the source, perhaps ask the DataGridView
to officiate:
dataGridView1.DataSource = bs;
dataGridView1.ReadOnly = true;
dataGridView1.CurrentCellChanged += delegate
{
DataGridViewRow row = dataGridView1.CurrentRow;
bool readOnly = row == null ||
row.Index != dataGridView1.NewRowIndex;
dataGridView1.ReadOnly = readOnly;
};
(and don't set AllowEdit
on the list)