Archive for the ‘DataPager’ Category

How to use DataPager with DataGrid

Wednesday, February 2nd, 2011


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();
    }