我在属性生成器中只能设置成 上一页 下一页 还有如果自己写分页显示有没有自动分页显示快
解决方案 »
- 求一个更新方法
- datagrid模板列中的多选按钮框的问题
- 内存溢出 select pointID from points where pointTextCopy like '%ab%'
- 怎样配置webconfig,退出时删除所有登陆信息,并返回到登陆界面
- 求超链接 helpme
- ListBox选取Multiple后,如何不按ctrl可以选取多行?
- 菜鸟学.NET 关于Session["UserName"] = name;问题
- 【谢谢】repeater 中调用后台的方法时,怎么能直接传递整个对象?
- 怎么判定文本框里输入的是否全是数字???
- 短期要建站,谁有这方面经验,帮帮忙啊
- 我在中datagrid添加了超链接,颜色要怎么变?请高手帮忙。
- 关于VS。NET自带入门教程的事
click事件里写:
第一页:
DataGridPage.CurrentPageIndex = 0;
BindGrid(); //绑定
最后一页:
DataGridPage.CurrentPageIndex = (DataGridPage.PageCount - 1);
BindGrid(); //绑定
你可以用linkbutton按钮实现的
{
string PageInfo = ((LinkButton)sender).CommandName;
switch (PageInfo)
{
case "第一页":
DataGrid1.CurrentPageIndex = 0;
break;
case "上一页":
if (DataGrid1.CurrentPageIndex > 0)
DataGrid1.CurrentPageIndex -= 1;
break;
case "下一页":
if (DataGrid1.CurrentPageIndex < (DataGrid1.PageCount - 1))
DataGrid1.CurrentPageIndex += 1;
break;
case "最后一页":
DataGrid1.CurrentPageIndex = (DataGrid1.PageCount - 1);
break;
}
this.linkdb();
}