title: How to bind values to checkboxes using the data in the database?
body: <p>I have a interface with several check boxes. <strong>I want it to be checked if the relevant value available in the database</strong>.<br>
  This is the interface I have<br>
  <a href="https://i.stack.imgur.com/ecOJt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ecOJt.png" alt="Interface"></a></p>
  
  <p>First for check boxes are to be loaded from a different table and the others within the box should be loaded using another table.<br>
  If you can please help me to do this.         </p>
  
  <p>This the table for first 4 checkboxes<br>
  <a href="https://i.stack.imgur.com/0V6j5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0V6j5.png" alt="1st checkboxes"></a></p>
  
  <p>This is the table for lower checkboxes<br>
  <a href="https://i.stack.imgur.com/E2QuJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E2QuJ.png" alt="lower checkboxes"></a></p>
  
  <p><strong>I have created the query and data gets to a dataset.</strong><br>
  This is the code I have done so far         </p>
  
  <pre><code>            List&lt;int&gt; list = new List&lt;int&gt;();
              foreach (DataRow dr in ds.Tables[0].Rows)
              {
                  list.Add(Convert.ToInt32(dr["Qulif_code"]));
  
              }
              int[] arr = list.ToArray();
  
              for (int i = 0; i &lt; arr.Length; i++)
              {
                  if (arr[i] == 1)
                  {
                      ck_ol.Checked==true ;
                  }
  
              }
  </code></pre>