GridView - fixed row height

G

Greg Smith

I am learning to use the Asp.Net 2.0 GridView. When I page of filter the
data and end up with a page with less than the full page size of rows then
the header and the displayed rows "stretch" to fill the GridView.



I would like to have the row height remain the same and just display a blank
space below the data. How is this done?





Any help is greatly appreciated.
 
T

Tim_Mac

hi Greg,
you probably have a 100% height setting on the gridview. otherwise check if
your stylesheet has any settings that could be in effect for the gridview.
i've never seen the behaviour you describe on a gridview before.

let me know if this doesn't sort it out.
tim
 
R

Rob Morton

If you specify the "Height=" of the grid then when it displays it will fill that height 100% regardless of the number of rows, resulting a half mix between the header and the row or rows. Use a div tag to specifiy the max height of the grid and don't assign the grid "Height" and scroll options.
 
C

cloudoversea

do not give gridview's height a value, it works. gridview dynamically generates row height for each page
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top