Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > GridView Height

Reply
Thread Tools

GridView Height

 
 
Ben Schumacher
Guest
Posts: n/a
 
      03-30-2006
The rows in my gridview are not holding their height as specified in the
<RowStyle height="18"/> and <AlternatingRowStyle height="18"/>. This occurs
when I have maybe 2 or 3 records in my gridview control, but the height
propery of the gridview control is set to like 150. I just want the rows to
vertically align to the top and list out down the grid. Instead, the rows
automatacally adjust their height to fill in the extra space in the grid.
How can I stop this?


 
Reply With Quote
 
 
 
 
CaffieneRush@gmail.com
Guest
Posts: n/a
 
      03-31-2006
GridViews display tabular data and are rendered as tables (at least in
IE). The gridview rows are rendered as <tr> elements within the
<table>...You get the idea.

Do you want to have an empty space at the bottom when the total rows
are less than ceiling(150/1?
To achieve that look, gridview would have to render an extra row + a
cell that spans the entire of this extra row which fills the remaining
space in height.

It might just be possible to achieve what you want by showing the
gridview footer and making the footer height fill this extra space.
Someone more expert than I in html/css might be able to help you with
the style needed.
Then you can modify your gridview's <FooterStyle> accordingly.

Regards.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting exact height of a panel with a height="100%" samer ASP .Net 3 09-28-2009 05:21 PM
Why can't I change height with <col width="50" height="100">? Bernd Meier HTML 6 01-14-2008 07:25 AM
textbox height different than input height tshad ASP .Net 1 03-08-2007 10:04 PM
measuring web controls height at runtime (or converting .height % to px) Wotney ASP .Net 1 10-25-2006 01:39 PM
how to get specific cell height without hard-coding a height value laredotornado@zipmail.com HTML 0 08-19-2006 08:13 PM



Advertisments