title: How to Add items in List of Type CheckBox and Show them in Check Boxes?
body: <p>My Scenario : </p>
  
  <p>I am Doing School Management System in Windows Form Application in which i have to add Classes from GUI and link that classes to section (it will show that which class have which sections) so for that i am loading sections from Sections and want to show them in check boxes so that user can select sections of that class he is adding. </p>
  
  <p>Problem :</p>
  
  <p>i am not able to show the sections in check boxes which will be indeed easy to select the sections for new class</p>
  
  <p>What I Want : </p>
  
  <p>i want that the sections i am loading should be shown in the form of check boxes.</p>
  
  <p>My Code :</p>
  
  <pre><code>try
  {
      Sections objSections = new Sections();
      objSections.LoadAll();
      if (objSections.RowCount &gt; 0)
      {
  
          List&lt;CheckBox&gt; Sectionlist=new List&lt;CheckBox&gt;();
          for (int i = 0; i &lt; objSections.RowCount; i++)
          {
  
              Sectionlist.Add(objSections.Name);  // here is error "Some invalid arguments"
          }
      }
      else
      {
          DevComponents.DotNetBar.MessageBoxEx.Show(" No Section Found, Please Add some Section And linke them with Classes. ", " Information Message! ");
          return;
      }
  }
  catch (Exception ee)
  {
      DevComponents.DotNetBar.MessageBoxEx.Show(ee.Message);
      return;
  }
  </code></pre>