Cell from DataGridViewCheckBoxColumn Checked programmatically
<p>I'm trying to check cells from a <code>DataGridViewCheckBoxColumn</code>.
I want to do it programmatically.</p>

<p>Here is my <code>DatagridView</code>:</p>

<pre><code>DataGridViewCheckBoxColumn dataChecked = new DataGridViewCheckBoxColumn(false);

this.dataGrid.Columns.Add(dataChecked);
</code></pre>

<p>My <code>DataGrid</code> is using a <code>DataSource</code> from sql but my <code>CheckBoxColumn</code> doesn't. That column is just a way to know later when I have to add or remove some data to/from a container.</p>

<pre><code>Container 
    DATA 1 Check
    DATA 2 Uncheck

Container 
    DATA 1 Uncheck (remove)
    DATA 2 Check (add)
</code></pre>

<p>I tried multiple things but nothing worked:</p>

<pre><code>datagrid.Rows[1].Cells[5].Value = true;
datagrid.Rows[1].Cells[5].TrueValue = true;
DataGridViewCell chk = (DataGridViewCell)datagrid.Rows[1].Cells[5];
chk.Value = true;
</code></pre>

<p>I can tell if the cell is true or not but the <code>CheckBox</code> is not checked...</p>