How to use DataPager with DataGrid


Requirements;

  • .net framework 3.5

Follow the instruction as follows which explains how to use datapager with custom datagrid control;

  • Download this control
  • Unzip it and add CS.Web.UI.dll to your visual studio toolbox.
  • Drag from toolbox and drop the control to your aspx page.
  • Sample code in aspx file.


            
        
   

        
          
            


            
                    

          

          

          
        
      

And gridActivities_PageIndexChanging in .cs file

protected void gridActivities_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        gridActivities.PageIndex = e.NewPageIndex;
        gridActivities.DataBind();
    }
  • Print this article!
  • Twitter
  • Facebook
  • Digg
  • del.icio.us

Tags: , ,

One Response to “How to use DataPager with DataGrid”

  1. Umit Akbas says:

    it’s magnificent article. thank you sisman. I track and will track you.

Leave a Reply