title: DataGridView selected row to check a checkbox
body: <p>I am currently trying to check a checkbox dependent of the SQL data after selecting the row in a datagridview.</p>
  <p>I have gotten this to display text with TexBoxes, but cannot get it to check a check box.</p>
  <p>Yes = True
  No = False</p>
  <p>Any recommendations, would be very much appreciated.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>                textBox4.Text = row.Cells[11].Value.ToString();  //other/notes
                  textBox3.Text = row.Cells[3].Value.ToString();  //Monitor
                  textBox1.Text = row.Cells[0].Value.ToString();  //Firstname
                  textBox2.Text = row.Cells[1].Value.ToString();  //Surname
                  comboBox1.Text = row.Cells[2].Value.ToString();  //Company
                  comboBox3.Text = row.Cells[4].Value.ToString();  //Laptop/Nuc
                  checkBox1. = row.Cells[5].Value.ToString();   //keyboard</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/5lj0I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5lj0I.png" alt="enter image description here" /></a></p>
  <pre><code>enter code here
  </code></pre>
  <p>The table being displayed is  bound by'binding source' the code below is how the the datadridview is populated.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>BindingSource bs = new BindingSource();
  bs.DataSource = dataGridView1.DataSource;
  bs.Filter = "Firstname Like '" + textBox1.Text + "%' and lastname Like '" + textBox2.Text + "%' and Company '" + comboBox1.Text + "%'";
  dataGridView1.DataSource = bs.DataSource;</code></pre>
  </div>
  </div>
  </p>