title: How to bind data source to datagridview combobox and checkbox
body: <p>I have one datagridview with combo-box and check box.
  <img src="https://i.stack.imgur.com/67e39.png" alt="DataGRidView"></p>
  
  <p>when i try to get values from datagridview in data table it works fine. But when i tried to get value from database in same scheme of datagridview it adds rows in datagridview but does not sets combo box or check box value. For setting datasource i tried.</p>
  
  <p><code>DataTable dt = db.getSecurityCheck(dateTimePickerDate.Value);
              dataGridView1.DataSource = null;
              dataGridView1.DataSource = dt;</code> </p>
  
  <p>After setting datasource and DataPropertyName with datatable column name it replaces checkbox and combobox with textboxes.
  <img src="https://i.stack.imgur.com/ZW5VG.png" alt="After Setting Datasource">.</p>
  
  <p>Do i need to manually set the values by running for each loop on retrieved datatable and setting value for each cell individually.</p>