I've setup a template column with a dropdownlist. I have an Insert button that adds a null row to the datagrid to insert new records. In order to properly insert a new row, I have to populate my ddl with data from another table due to the relation with that table. I'm having a problem trying to populate this ddl.
//dtType is my datatable
dtType Type = new dtType();
DropDownList list = (DropDownList)
list.DataTextField = "ddlType";
list.DataValueField = "IDType";
list.DataSource = Type;