Good morning,
I contact you because I have a problem in my C# program.
I am using a basic DataGridView with 4 DataGridViewTextBoxColumn. And I would like to add a checkbox with a label in a specific cell of the data grid view at a specific position in the data grid view ( for example : Row[0], Col[0] )
I am using a basic DataGridView with 4 DataGridViewTextBoxColumn. And I would like to add a checkbox with a label in a specific cell of the data grid view at a specific position in the data grid view ( for example : Row[0], Col[0] )
I tried to do that
:Code
DataGridViewCell ch1 = new DataGridViewCheckBoxCell();
this.dataGridView1.Rows[0].Cells[0] = ch1;But it is not working and I have an exception concerning the type of the cell when I run the application.
First, I would like to know it the thing that I want to do is possible and then if someone have an idea to it.
Thank you in advance.

Mukesh Kumar TiwariRank #1,774 · 844 reputationPosted May 21, 2014, 8:45 PM EDT
http://www.c-sharpcorner.com/Blogs/11558/
Romain90 reputationPosted May 21, 2014, 10:34 PM EDT