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?
 
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.
0
 
naveenkohliCommented:
You can always set the height of the control to 25% provided your page is set to 100% height.
0
 
MariyamAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.