标题:datagrid分页问题
取消只看楼主
wangtuan7788
Rank: 1
等 级:新手上路
帖 子:286
专家分:0
注 册:2007-10-8
 问题点数:0 回复次数:0 
datagrid分页问题
程序代码:
<asp:DataGrid ID="mydataGrid" runat="server" AllowCustomPaging="True" AllowPaging="True" CellPadding="2" DataKeyField="id"  GridLines="None"OnDeleteCommand="mydataGrid_delete" AutoGenerateColumns="false" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NextPrev" Height="464px" Width="688px" OnPageIndexChanged="mydataGrid_PageIndexChanged"/>                        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Right" NextPageText="下一页" PrevPageText="上一页" PageButtonCount="20" />
     <Columns>
        <asp:BoundColumn DataField="标题" ReadOnly="True" HeaderText="标题" />
        <asp:HyperLinkColumn HeaderText="修改" Text="编辑"DataNavigateUrlField="id"            DataNavigateUrlFormatString="weihu.aspx"/>
         <asp:ButtonColumn CommandName="delete" Text="删除" HeaderText="删除" />
       </Columns>
</asp:DataGrid>
Protected Sub mydataGrid_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs)
        
        mydataGrid.CurrentPageIndex = e.NewPageIndex
        bindgrid()
    

 End Sub

代码就是上面的了,都是抄的,可是我最终的结果,上一页和下一页都不管用,鼠标放上面和放在普通文本上一样

[[it] 本帖最后由 wangtuan7788 于 2008-8-14 14:30 编辑 [/it]]
搜索更多相关主题的帖子: datagrid 
2008-08-14 14:29



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-228247-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.294147 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved