GridView binding on demand

Hi,

I am using asp.net gridview. My application having bulk data. so while i am loading data from data base application goes slow. and i am using pagination in gird.
I want to use grid view in such a manner that when page is loaded it will fetch data from data base for first page only..
and if i navigate to page 2nd they it will fetch data for 2nd page only from data base, so that my page load will less.

Questions by mayurikasoni

Showing Answers 1 - 3 of 3 Answers

Tanmay

  • Jan 14th, 2015
 

Write code in gridpageindex_changing
tack data in viewsate agin bind data
grvname.pageindex=e.newpageindex
then bind gridview

Code
  1. grvname.pageindex=e.newpageindex

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions