在itemdatabound事件中为下拉框注册事件
DropDownList dpTest=(DropDownList)e.Item.FindControl("EditType");
if (dpTest!=null)
{
dpTest.SelectedIndexChanged += new System.EventHandler(this.DropDownList1_SelectedIndexChanged);
}然后自己写一个SelectedIndexChanged方法,效率方面有点影响

解决方案 »

  1.   

    dropdownlist控件中的AutoPostBack属性设置为True
      

  2.   

    sorry
    是在DataGrid的ItemCreated事件中写
      

  3.   

    你用的是模板列?
    下拉列表控件在ItemTemplate还是EditItemTemplate中啊
      

  4.   

    <ItemTemplate>
    <asp:DropDownList id="DropDownList1" AutoPostBack="True" Runat="server">
    <asp:ListItem Value="河北省"></asp:ListItem>
    <asp:ListItem Value="北京市"></asp:ListItem>
    <asp:ListItem Value="上海市"></asp:ListItem>
    <asp:ListItem Value="天津市"></asp:ListItem>
    </asp:DropDownList>

    </ItemTemplate>是这样的