Checkbox column in datagridview

0
0

Hi,

I have added a checkbox column to DGV, and I want to set it to readonly, but I am unable to execute that, how to set it correctly?

 

Thank you.

  • Glenn Gonzales
    I am setting that in column designer, and also I clicked the column then set it in properties window, but it is the same, not able to set it/modify to readonly = true.
  • You must to post comments
0
0

I tried that too and it all works well.

  • You must to post comments
0
0

Hi Glenn,

this.dataGridView.Columns[“yourcolumn”].ReadOnly = true;

Just tried with a checkbox column and it works ok.

Can you please send a small test case?

TIA
Frank

  • Frank (ITG)
    Also tried in the designer and that also worked ok. So we need a test case. Best regards, Frank
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.