像这样的下拉框是通过什么方式实现的?
查看网上资料试着通过代码实现,但一直不成功,求教!

解决方案 »

  1.   

    <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
    <Columns>
    <asp:TemplateField HeaderText="下拉框">
              <ItemTemplate>
                         <asp:DropDownList ID="CallInIdSelControl" runat="server" Visible="true">
                            </asp:DropDownList>
             </ItemTemplate>
    </asp:TemplateField>
    </Columns>
    </asp:GridView>
    你在后台绑定数据
      

  2.   

    去这个牛逼人物博客去看看吧
    http://www.cnblogs.com/huochangjun/archive/2010/06/01/1748952.html
      

  3.   

    在模版里加dropdownlist  就行了 啊
      

  4.   

    GIRDVIEWER控件和其他控件的结合使用吧
      

  5.   

    看这个http://blog.csdn.net/21aspnet/article/details/1540301
      

  6.   

    参考:
    http://www.cnblogs.com/insus/articles/1654911.html
    http://www.cnblogs.com/insus/articles/2075101.html
    http://www.cnblogs.com/insus/articles/1997458.html
      

  7.   

    在模板里直接放个DropDownList哈
      

  8.   

    DropDownList在ListView中:<asp:ListView ID="lvStudentInfo" runat="server">
      <EditItemTemplate>
        <asp:DropDownList ID="ddlGender" runat="server">
          <asp:ListItem Value="请选择">请选择</asp:ListItem>
          <asp:ListItem Value="0">男</asp:ListItem>
          <asp:ListItem Value="1">女</asp:ListItem>
        </asp:DropDownList>
      </EditItemTemplate>
    </asp:ListView>