DropDownList如果放在datagride里面,怎么触发它的SelectedIndexChanged事件?
DropDownList如果放在datagride里面,怎么触发它的SelectedIndexChanged事件?
------解决方案--------------------OnItemDataBound事件里.Attributes.Add
------解决方案--------------------在datagrid的itemdatabind事件里面添加
DropDownList.SelectedIndexChanged+=new System.EventHandler(DropDownList_SelectedIndexChanged);
------解决方案--------------------自己写委托事件
DropDownList.SelectedIndexChanged+=new System.EventHandler(DropDownList_SelectedIndexChanged);
应该在ItemCreated里写