Click here to Skip to main content
15,921,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi How do I hide footer from gridview during 1st page( when there is not 2nd page) in paging concept.....?

Which propeties do I have to set.....?
Updated 7-Jun-10 4:28am

No need to set any properties.
if no. of rows is not more than grid size then footer will not show paging.
Share this answer
In case you stil find trouble, then:
1. Set a page size.
2. Check the row count of Dataset.
3. If the rowcount of dataset is more than the page count, then pagination should be visible or else not. So based on this, decide to show/hide grid footer.

Thus, something like:
if(rowCount > Grid.PageSize)
  Grid.ShowFooter = true;
  Grid.ShowFooter = false;
Share this answer

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