Darren Young
Darren Young

Reputation: 11090

.net datagridviewcheckboxcolumn

I have programmatically added a datagridviewcheckboxcolumn as such:

DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn();
dataGridView1.Columns.Add(cb);

It adds the column of check boxes fine, but it won't allow me to check any of them when I click on them? Anybody know why?

Thanks.

Upvotes: 0

Views: 960

Answers (1)

Javed Akram
Javed Akram

Reputation: 15344

Set these properties of your DataGridViewCheckBoxColumn cb

 cb.Frozen = false;
 cb.ReadOnly = false;

Upvotes: 2

Related Questions