Solved

GridView Row Height

Posted on 2009-05-07
6
1,050 Views
Last Modified: 2012-05-06
I'm trying to set the row height for a databound GridView.  Can this not be done in design time?  My rows are 10 times as thick as they need to be.
0
Comment
Question by:NigelRocks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 125 total points
ID: 24332842
apparently you can set the row height by using the databound event

http://www.vbforums.com/showthread.php?t=504126
0
 
LVL 5

Assisted Solution

by:mrcoolcoder
mrcoolcoder earned 250 total points
ID: 24333013
I think what you want is this:

<asp:Gridview ..... >
........
       <RowStyle Height="20px" />
</asp:GridView>
0
 
LVL 1

Author Comment

by:NigelRocks
ID: 24338728
I've gone under "RowStyle" and "Height" and set the height to some miniscule amount.  In design time, it obviously affects the height of the rows.  However, in runtime the rows are still huge.  Neither of the above suggestions has worked.
0
 
LVL 22

Assisted Solution

by:prairiedog
prairiedog earned 125 total points
ID: 24339529
Sounds like there is a CSS file that causing the problem. Do you have a CSS file? Check your GirdView's CssClass property.
0
 
LVL 5

Assisted Solution

by:mrcoolcoder
mrcoolcoder earned 250 total points
ID: 24339545
.. or any of the columns with a control with height properties set.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question