Solved

GridView Row Height

Posted on 2009-05-07
6
1,036 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
6 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 125 total points
Comment Utility
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
Comment Utility
I think what you want is this:

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

Author Comment

by:NigelRocks
Comment Utility
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
Comment Utility
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
Comment Utility
.. or any of the columns with a control with height properties set.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now