Which Gridview property must be enabled to work with pagination?

 Posted by vishalneeraj-24503 on 11/25/2013 | Category: ASP.NET Interview questions | Views: 2385 | Points: 40

Set Gridview' AllowPaging property to True. By-default it's False.

If we do not Enable AllowPaging property, then we can not navigate pages meaning If AllowPaging = False
and we have written some code inside Gridview1_PageIndexChanging event, then it will not work.

So if we want to navigate through pages, then 3 things we have to notedown.

1). Set AllowPaging = True
2). Handle Gridview1_PageIndexChanging event
3). Write code inside Gridview1_PageIndexChanging event.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response