title: How to check checkbox if the datagridview column value="True"
body: <p>I want to set my datagridview checkbox checked or unchecked according to the datagridview column value.</p>
  
  <p>If datagridview column[3] value="true" checkbox checked</p>
  
  <p>If datagridview  column[3] value="false" checkbox unchecked</p>
  
  <pre><code>//my code as follows:
  foreach (DataGridViewRow r in dataGridView3.Rows)
  {
       DataGridViewCheckBoxCell chk = (DataGridViewCheckBoxCell)r.Cells[0];
       string inceleme = r.Cells[3].Value.ToString();
  
       if (inceleme=="Evet")
       {
           chk.Value = chk.TrueValue;           
       }
  }
  </code></pre>