Wednesday, June 3, 2009

Set Paging in Datagrid

/*set Allow paging=true (in datagrid properties) and write the following code.. */

protected void DataGrid1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
DataGrid1.PageIndex = e.NewPageIndex;
LoadDataGrid1();

}

No comments:

Post a Comment