DEMO

IMP:- ExtendedGridView Control is the extension of .Net GridView.
Thus all the properties and events which are available with .Net GridView will also be available with ExtendedGridView

Paging provided by .Net has a major drawback. If you want to use the default Paging provided by .Net, then you will have to bind the whole dataset/datatable to the GridView.
e.g.: You have 5000 Rows in database and you are showing 20 records per page, then also to use the default .Net Paging, you will have to bind 5000 Rows to the GridView (instead of actually binding just 20). And everytime you change the PageIndex, all 5000 Rows will have to be rebinded.

To overcome this issue, you can implement custom paging. But it involves lot of coding to be done. An alternative would be to use my ExtendedGridView Control, which has everything done automatically for you. You will just have to set few easy properties and you are done.

ExtendedGridView Control has following features:
================================

  • Default Styling Applied
  • Custom Paging Handled (Pager Control)
    • No need to bind the whole dataset
    • Infact you can bind just the rows required and set the properties for the PagerControl
    • My Extended GridView will show the Pager Control accordingly
  • One more event to Jump to specific number of page (i.e. directly going to 20th
    Page)
  • IsCheckBoxColumnRequired property can be used to show the checkbox column as
    the first column (including SelectAll feature)

New Properties provided (Additional to normal GridView)
====================================

  • GridPageIndex = number you would like to set
  • TotalRecords = total number of records
  • GridPageSize = number of records you want to show on single
  • IsCheckboxColumnRequired = to add checkbox column as first column in the GridView
    (with SelectAll functionality implemented)

New Event Added (Additional to normal GridView)
================================

  • JumpPageNumberChanged = To get the new pagenumber which user has provided for
    moving directly to that page

How to USE it in your code
==================

  • Add Reference to the ExtendedGridView library (provided in download)
  • The way you would use GridView, you can use ExtendedGridView
  • You just need to set the following properties:
    • AllowPaging = true
    • GridPageIndex = number you would like to set
    • TotalRecords = total number of records
    • GridPageSize = number of records you want to show on single page
  • Just make sure that, you handle the Grid PageIndex Changing Event
    • In this event you can rebind the required data (new 20 records)
  • You can handle JumpPageNumberChanged Event and bind the records accordingly
    • You will have to set the GridPageIndex according to the new value, which you
      will get along with the Event Details

Note:- => While dealing with ExtendedGridView… you can use GridPageIndex instead of PageIndex

Download Links :

ZIPPYSHAREMEDIAFIREGOOGLE DRIVEUPLOADEDUSERSCLOUDSOLIDFILESSENDSPACE