Answer:
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