title: How to add a checkedit control to a gridview in devexpress programmatically
body: <p>I want to bind a <code>DataTable</code> to a <code>BindingSource</code> which is then bound to the <code>GridControl</code>. How do I add a <strong>checkedit</strong> control once the <code>DataTable</code> has been created?</p>
  
  <p>I have a Devexpress windows application which in the designer,</p>
  
  <ol>
  <li>GridControl</li>
  <li>BindingSource</li>
  </ol>
  
  <p>This <code>GridControl</code>'s datasource is the bindingsource1.</p>
  
  <p>I have the following in the page_Load event,</p>
  
  <pre><code>        DataTable dt = new DataTable();
          dt.Columns.Add("FirstName");
          dt.Columns.Add("Age");
  
          dt.Rows.Add("rambo", 60);
          dt.Rows.Add("Arnie", 35);
          bindingSource1.DataSource = dt;
          gridView1.RefreshData();
  
          gridView1.Columns.Add(
              new DevExpress.XtraGrid.Columns.GridColumn()
              {
                  Caption = "Selected",
                  ColumnEdit = new RepositoryItemCheckEdit() { },
                  Visible = true,
              }
              );
  </code></pre>
  
  <p>Unfortunately this doesn't seem to work. Any ideas?</p>