Gridview Paging
-
Hi fellows, I have a Gridview with paging enabled. I wanted to display the 3rd page record of the gridview without clicking on the paging buttons at the bottom of the gridview. I couldn't find a way to do. I have tried to call the gridview_PageIndexChanging event manually but it doesn't get called. I google it but couldn't find anything, Coud anyone help me with it? Thanks
-
Hi fellows, I have a Gridview with paging enabled. I wanted to display the 3rd page record of the gridview without clicking on the paging buttons at the bottom of the gridview. I couldn't find a way to do. I have tried to call the gridview_PageIndexChanging event manually but it doesn't get called. I google it but couldn't find anything, Coud anyone help me with it? Thanks
-
Hi fellows, I have a Gridview with paging enabled. I wanted to display the 3rd page record of the gridview without clicking on the paging buttons at the bottom of the gridview. I couldn't find a way to do. I have tried to call the gridview_PageIndexChanging event manually but it doesn't get called. I google it but couldn't find anything, Coud anyone help me with it? Thanks
You can direct set pageIndex property of the gridview in page load event like below code
GridView1.PageIndex = 2;
Page index starts from 0 so 2 will display page 3 in gridview. Hope this might help you. My DotNet Stuff