title: Adding Dropdownlist to gridview column from codebehind
body: <p>Im trying to add dropdownlist to a column in my gridview. I have something like this:</p>
  
  <pre><code>DataTable dt = new DataTable();
          DataColumn dc = new DataColumn();
  
          if (dt.Columns.Count == 0)
          {
              dt.Columns.Add("Names", typeof(string));
              dt.Columns.Add("Selection", typeof(string));
  
          }
  
   DropDownList ddlSelection= new DropDownList();
  
          ddlSelection.Items.Add(new ListItem("one"));
          ddlSelection.Items.Add(new ListItem("two"));
  
  
  DataRow NewRow = dt.NewRow(); 
  NewRow[0] = lblname.Text;
  NewRow[1] = ddlSelection.Items;
  dt.Rows.Add(NewRow);
  </code></pre>
  
  <p>I'm getting a typeof error. Anyone who can help me?</p>
  
  <p>Thanks!</p>