用模板列,在ItemTemplate中加入一个DropDownList

解决方案 »

  1.   

    http://www.csharphelp.com/archives/archive212.html
      

  2.   

    给DataGrid添加摸版列:<asp:TemplateColumn>
    <ItemTemplate>
    <asp:RadioButtonList id="RadioButtonList1" runat="server">
    <asp:ListItem Value="男">男</asp:ListItem>
    <asp:ListItem Value="女">女</asp:ListItem>
    <asp:ListItem Value="保密">保密</asp:ListItem>
    </asp:RadioButtonList>ID号:
    </ItemTemplate>
    <EditItemTemplate></EditItemTemplate>
    </asp:TemplateColumn>
      

  3.   

    在Grid中添加模板列,编辑DataGrid属性,在此列加入男、女、保密3项
      

  4.   

    把droplistdown拖到你的模板列中:P