Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Sunday, November 25, 2007

How to enable paging on a GridView that is bound to a DataTable.

How to enable paging on a GridView that is bound to a DataTable. On the GridView, simply

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = Cache["dt"];
GridView1.DataBind();
}


link

3 comments:

Anonymous said...

I inclination not acquiesce in on it. I over warm-hearted post. Expressly the title attracted me to study the sound story.

Anonymous said...

Good fill someone in on and this enter helped me alot in my college assignement. Thanks you as your information.

Anonymous said...

Thanks for this discriminating article, it's very much famous blogs