Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataGridView1.DataSource = bs;
- dataGridView1.ReadOnly = true;
- dataGridView1.CurrentCellChanged += delegate
- {
- DataGridViewRow row = dataGridView1.CurrentRow;
- bool readOnly = row == null ||
- row.Index != dataGridView1.NewRowIndex;
- dataGridView1.ReadOnly = readOnly;
- };
Add Comment
Please, Sign In to add comment