DataGrid有自动分页?? 怎么用的,说说吗? 听说:DataGrid有自动分页?? 怎么用的,说说吗?能说说吗,我也是刚学了几天: DataGrid.还不怎么了确,想问问???多谢各位的帮忙,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.cnblogs.com/huazi4995/archive/2006/12/30/608111.html 在datagrid的PageIndexChanged事件里头写例如private void dgGood_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e) { if(Session["dgGoodsDS"]!=null) ds =(ICollection)Session["dgGoodsDS"]; this.dgGood.CurrentPageIndex = e.NewPageIndex; this.dgGood.DataSource =ds ; this.dgGood.DataBind(); } private void dgGood_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e) { this.dgGood.CurrentPageIndex = e.NewPageIndex; this.dgGood.DataSource =ds ; this.dgGood.DataBind(); }我是这样用的``` DataGrid没有自动分页的功能,必须自己写分页事件处理程序才行,否则分不了页========================www.webdiyer.com datagird.autopage = true in the event of pageindexchanged datagrid.cruuentpageindex = e.newpageindex 问一个菜鸟的问题:装vs studio.net平台时候。。。。 ————视频插件参数的设置,谢谢 刚入门,问几个很简单的问题 自定义TextBox + Label的问题 大侠,给小弟介绍两本ASP。NET和ADO。NET的入门书吧。。。俺是新人。。。 为什么ASP.NET和ASP不用同时架? 如何做到datagrid的循环 高高分求asp.net的相册Web用户控件制作方法或者源码例子 求助关于查询列表的问题 哪里能下载到红帆OA以及它的白皮书,用户说明书,功能演示 datagrid "删除" 弹出对话框的问题 有一点疑惑
例如
private void dgGood_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
if(Session["dgGoodsDS"]!=null)
ds =(ICollection)Session["dgGoodsDS"];
this.dgGood.CurrentPageIndex = e.NewPageIndex;
this.dgGood.DataSource =ds ;
this.dgGood.DataBind();
}
{
this.dgGood.CurrentPageIndex = e.NewPageIndex;
this.dgGood.DataSource =ds ;
this.dgGood.DataBind();
}
我是这样用的```
www.webdiyer.com