Restricting the Number of Rows Per Page in GridView

Hi,

I have a GridView control in VS.Net 2.0 for which I have paging enabled.  I'd like to list details for each record below.  Is there a way to restrict the number of records displayed per page so that when the control is rendered it only takes up about 25% of the screen leaving the rest of the space avilable for the details?

Thanks.
-Mari
MariyamAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

naveenkohliCommented:
You can always set the height of the control to 25% provided your page is set to 100% height.
DBAduck - Ben MillerPrincipal ConsultantCommented:
You should be able to set the PageSize property of the GridView to set it to a specific number of rows.

gridView.PageSize = 10 or whatever you want.

Ben.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MariyamAuthor Commented:
Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.