?
Solved

GridView Row Height

Posted on 2009-05-07
6
Medium Priority
?
1,064 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
5 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 500 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 1000 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 500 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 1000 total points
ID: 24339545
.. or any of the columns with a control with height properties set.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

840 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