我想作一个datagrid其中有一列是按钮(添加),点击按钮后,datagrid增加一空白行,其中第一列是dropdownlist,要绑定数据,这个怎么实现啊?

解决方案 »

  1.   

    偶也想问!!!!!!!!!!!!!!!!!!你们还有谁知道怎么在Datagrid中增加一个查看详情列,就可以弹出新窗口查看本行的详细信息.
    还有增加一个修改列,也可以弹出一个新窗口提供修改啊
      

  2.   

    我知道一些。
    在datagrid的项目模板中,的编辑模板中,你在那里随便写控件。添加一行以后就是里面的控件类型
      

  3.   

    把新增行丢到datagrid的页脚中
    在页脚里放入模板列
    模板行中丢入个dropdownlist
    在datagrid绑定事件中写吧
      

  4.   

    把控件放在页脚里就好了。
    <Columns>
                  <asp:TemplateField>
                      <FooterTemplate>
                         <asp:DropDownList ID="ddl1" runat="server" >
                             <asp:ListItem Value="0" Text="A" />
                             <asp:ListItem Value="1" Text="B" />
                         </asp:DropDownList>
                      </FooterTemplate>
                  </asp:TemplateField>
                </Columns>