Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to select the number of records/rows to display in the gridview by a drop down list
Posted

select the number of records/rows to display in the gridview by a drop down list
Sure. just set the PageSize of your GridView at runtime in Dropdown SelectedIndexChanged event. Get the value selected and set the same for PageSize property (an integer).

Here: MSDN: GridView.PageSize Property [^]
 
Share this answer
 
you can put a hidden field in each row in gridview & make select the rows how match the value of selected item of dropdown
 
Share this answer
 
Comments
Sandeep Mewara 30-May-12 13:56pm    
What?

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