ddl0.DataTextField = text;
ddl0.DataValueField = id;
gridview里有个绑定字段id是跟ddl0里的id相同的,怎样可以通过gridview点击修改时,获取了gridview里的id后,ddl的选中项就是gridview里的id
------解决方案--------------------------------------------------------
foreach (ListItem item in ddl0.Items)
{
item.Value = targetID;
item.Selected = true;
}