Click here to Skip to main content
15,903,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My problem is:
I want to display the last page of the gridview by default , instead of the default first page. I also don't want to set the grid view in descending order.
For ex: My grid is having 25 records and grid pagesize is. 10. So, I want to display the page from 21 to 25 as my default grid view.
Pl help.
Thanks,
Posted
Updated 30-Nov-14 22:08pm
v2

 
Share this answer
 
Comments
Member 11239926 5-Dec-14 5:17am    
my problem is not solved.
i think grid may not support this.
use this :

C#
GridView1.PageIndex = Int32.MaxValue;
 
Share this answer
 
Comments
Member 11239926 5-Dec-14 5:18am    
my problem is not solved.
i think grid may not support the last page to show first.
King Fisher 5-Dec-14 5:24am    
put this line after the Grid Bind .it will work :)
Member 11239926 6-Dec-14 1:32am    
perfect solution.. solved the issue....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900