GridView分页数字颜色问题
ddlaa 2006-10-23 02:17:09 我想在分页中实现这种样式,并且数字像CSDN分页那样,点了之后变成红色。:
1 2 3 4 5 6 7 8 9 10 ... (共 12 页 当前第1页)
我现在用了这段代码
protected void GridView1_DataBound(object sender, EventArgs e)
{
GridViewRow gvRow = this.GridView1.BottomPagerRow;
Label pagerLBL = new Label();
pagerLBL.Text = " (共 " + this.GridView1.PageCount.ToString() + " 页 " + "当前第"+ (this.GridView1.PageIndex+1).ToString() +"页)";
gvRow.Cells[0].Controls.Add(pagerLBL);
}
只能实行这种样式:
1 2 3 4 5 6 7 8 9 10 ...
(共 12 页 当前第1页)
谢谢各位!!!