WorldWideScripts.net Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
.NET / Miscellaneous

Extended GridView Control

— Add-On to WorldWideScripts.net

Subscribe to our feed to stay up to date!

New! Follow us as you want it!


Extended GridView Control - CodeCanyon Item for Sale

Ads

Ad: Bluehost hosting

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
Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers

Properties

Created:
4 October 11

Last Update:
N/A

High Resolution:
No

Compatible Browsers:
IE6, IE7, IE8, IE9, Firefox

Files Included:
C# CS

Software Version:
.NET 2.0,.NET 3.0,.NET 3.5,.NET 3.7,.NET 4.0,.NET 4.5

Keywords

eCommerce, All Items, c-sharp, CustomControl, Dot-NET, ExtendedGridView, GriridView