troubleshooting Question

Gridview Fixed Height When Last Page Does Not Have Full Records

Avatar of antdow
antdow asked on
ASP.NETVisual Basic.NET
6 Comments1 Solution2081 ViewsLast Modified:
Hi there.  Please can someone let me know how you can ensure that the GridView always maintains the same height, and the paging controls maintain the same position when the last page of a dataset has less records than defined per page.  For example, if my data has 52 records and I define paging every 10 records, the last page will only have 2 records so the paging controls will jump up rather untidily.  I am guessing I would need to insert some extra rows when a certain event fires but cannot get the right code to work (the correct event and the count logic?).  Thank you for your time.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros