需要放一些提交啊之类的按钮。
放在gridview外面太不美观。
放page页上,如果记录数很少,就不显示page页。
求解。

解决方案 »

  1.   

    没必要,你做一些页面效果修饰,远远比你花心思在gridview上放,效果好多
      

  2.   

    你说的是在底部 新增一行?
    不如自己单独在外加一行,或者直接对gridview的行数据进行控制
      

  3.   

    。。gridview底部添加列。。底部。。列。。那到底是行还是列。。”编辑列“里面可以添加的把。。但是好像不能触发这个控件的事件。。
      

  4.   

     <FooterTemplate>
                          <asp:TextBox ID="txt" runat="server" Width="80px"></asp:TextBox>
                          <asp:Button ID="btnAdd" runat="server" Text="添 加" OnClick="btnAdd_Click" />
                          <asp:Button ID="btnCancel" runat="server" Text="取 消" OnClick="btnCancel_Click" />
                      </FooterTemplate>
    protected void btnAdd_Click(object sender, EventArgs e)
        {
            TextBox txt= GridView1.FooterRow.FindControl("txt") as TextBox;
    }
      

  5.   

    如果是加翻页符可以试试这个:
     <asp:GridView>
    ********************添加的表格内容
     <PagerTemplate>
                                                <table border="0" class="gridPx_174_1">
                                                    <tr align="right" style="width: 100">
                                                        <td style="width: 50%">
                                                        </td>
                                                        <td>
                                                            <asp:ImageButton ID="imbFirstPage" Height="20px" Width="15px" runat="server" ImageAlign="Top"
                                                            onmouseout="UnTip();" onmouseover="Tip('第一页);" 
                                                                ImageUrl="~/img/arrow/48px-2leftarrow.png" CommandName="Page" CommandArgument="F"
                                                                OnCommand="PageChanged" />
                                                            <asp:ImageButton ID="imbPreviousPage" Height="20px" Width="15px" runat="server" ImageAlign="Top"
                                                            onmouseout="UnTip();" onmouseover="Tip('前一页');" 
                                                                ImageUrl="~/img/arrow/48px-1leftarrow.png" CommandName="Page" CommandArgument="P"
                                                                OnCommand="PageChanged" />
                                                            <asp:DropDownList ID="ddlPageSelect" runat="server" Height="25px" AutoPostBack="true"
                                                                OnSelectedIndexChanged="DropPageChanged">
                                                            </asp:DropDownList>
                                                            <asp:ImageButton ID="imbNextPage" Height="20px" Width="15px" runat="server" ImageAlign="Top"
                                                            onmouseout="UnTip();" onmouseover="Tip('后一页);" 
                                                                ImageUrl="~/img/arrow/48px-1rightarrow.png" CommandName="Page" CommandArgument="N"
                                                                OnCommand="PageChanged" />
                                                            <asp:ImageButton ID="imbLastPage" Height="20px" Width="15px" runat="server" ImageAlign="Top"
                                                            onmouseout="UnTip();" onmouseover="Tip('末页);" 
                                                                ImageUrl="~/img/arrow/48px-2rightarrow.png" CommandName="Page" CommandArgument="L"
                                                                OnCommand="PageChanged" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </PagerTemplate> </asp:GridView>
      

  6.   

    对不起,说错了,是增加一行,只为了放按钮。
    用<footTemplete>,最后那一行会出现网格,你们明白的非常难看。