Solved

GridView Row Height

Posted on 2009-05-07
6
1,046 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp.net web application 3 44
Phone Does Not Abide By CSS Breakpoint For Navigation Controls 6 32
How to escape alias names for Oracle query 1 25
orderby list (from Json) 1 30
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…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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