I have tried to use the following code when adding a new row:
I have tried replacing the word "true" with 1, after setting the TrueValue property of the column to 1. Neither the code above, nor the change described below, makes the checkboxes be checked. How do I make them be checked?
Code:
DataGridViewRow row = new DataGridViewRow(); dataGridView1.Rows.Add(row); row.Cells[0].Value = true; //and more initialization