once you put the control inside a template, it becomes part of the datagrid, you need to
do it inside DataGrid's ItemDataBound event handle, check for if (e.Item.ItemType == ListItemType.Footer)
{
DropDownList ddl = (DropDownList)e.Item.FindControl("YourDropDownListID");
....
}see an example herehttp://aspnet.4guysfromrolla.com/articles/020503-1.aspx
do it inside DataGrid's ItemDataBound event handle, check for if (e.Item.ItemType == ListItemType.Footer)
{
DropDownList ddl = (DropDownList)e.Item.FindControl("YourDropDownListID");
....
}see an example herehttp://aspnet.4guysfromrolla.com/articles/020503-1.aspx
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货