В обработчике событий FormView DataBound
:
protected void FormView1_DataBound(object sender, System.EventArgs e)
{
switch (FormView1.CurrentMode){
case FormViewMode.ReadOnly:
break;
case FormViewMode.Edit:
break;
case FormViewMode.Insert:
DropDownList ddl = (DropDownList)FormView1.FindControl("DdlID");
var dict = new Dictionary<String,String>();
dict.Add("1", "Foo");
ddl.DataSource = dict;
ddl.DataValueField = "Key";
ddl.DataTextField = "Value";
ddl.DataBind();
break;
}
}